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"
15 GEN_FILES=(/etc/xen/xend-config.sxp.invirt)
17 dpkg -s "$PACKAGE" >/dev/null 2>/dev/null || exit 0
19 . /lib/init/gen-files.sh
20 . /lib/init/std-init.sh
25 echo 1 >/proc/sys/net/ipv4/ip_forward
26 for i in $(invirt-getconf xen.iface) default; do
27 echo 1 >/proc/sys/net/ipv4/conf/$i/rp_filter
28 echo 1 >/proc/sys/net/ipv4/conf/$i/proxy_arp
30 echo 0 >/proc/sys/net/ipv4/conf/all/proxy_arp
35 xm sched-credit -d 0 -w 512