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
8 # Short-Description: Startup script for the Invirt Xen host
12 PACKAGE=invirt-xen-config
14 DESC="Invirt Xen host"
16 GEN_FILES=/etc/xen/xend-config.sxp.invirt
18 dpkg -s "$PACKAGE" >/dev/null 2>/dev/null || exit 0
20 . /lib/init/gen-files.sh
21 . /lib/init/std-init.sh
26 echo 1 >/proc/sys/net/ipv4/ip_forward
27 for i in all default; do
28 echo 1 >/proc/sys/net/ipv4/conf/$i/rp_filter
29 echo 1 >/proc/sys/net/ipv4/conf/$i/proxy_arp
32 invoke-rc.d "$PARENTPACKAGE" "$1"
44 invoke-rc.d "$PARENTPACKAGE" stop