Last change
on this file since 1450 was
1261,
checked in by broder, 16 years ago
|
Generate and install /etc/xen/xend-config.sxp in invirt-xen-config
|
-
Property svn:executable set to
*
|
File size:
855 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | ### BEGIN INIT INFO |
---|
3 | # Provides: invirt-xen-config |
---|
4 | # Required-Start: $local_fs $remote_fs |
---|
5 | # Required-Stop: $local_fs $remote_fs |
---|
6 | # Default-Start: 2 3 4 5 |
---|
7 | # Default-Stop: 0 1 6 |
---|
8 | # Short-Description: Startup script for the Invirt Xen host |
---|
9 | # Description: |
---|
10 | ### END INIT INFO |
---|
11 | |
---|
12 | PACKAGE=invirt-xen-config |
---|
13 | PARENTPACKAGE=xend |
---|
14 | GEN_FILES=/etc/xen/xend-config.sxp |
---|
15 | |
---|
16 | dpkg -s "$PACKAGE" >/dev/null 2>/dev/null || exit 0 |
---|
17 | |
---|
18 | . /lib/init/gen-files.sh |
---|
19 | . /lib/init/std-init.sh |
---|
20 | |
---|
21 | do_start() { |
---|
22 | gen_files |
---|
23 | |
---|
24 | echo 1 >/proc/sys/net/ipv4/ip_forward |
---|
25 | for i in all default; do |
---|
26 | echo 1 >/proc/sys/net/ipv4/conf/$i/rp_filter |
---|
27 | echo 1 >/proc/sys/net/ipv4/conf/$i/proxy_arp |
---|
28 | done |
---|
29 | |
---|
30 | invoke-rc.d "$PARENTPACKAGE" "$1" |
---|
31 | } |
---|
32 | |
---|
33 | do_reload() { |
---|
34 | do_start |
---|
35 | } |
---|
36 | |
---|
37 | do_stop() { |
---|
38 | invoke-rc.d "$PARENTPACKAGE" "$1" |
---|
39 | } |
---|
40 | |
---|
41 | std_init "$1" |
---|
Note: See
TracBrowser
for help on using the repository browser.