Ignore:
Timestamp:
Oct 25, 2008, 6:00:22 PM (16 years ago)
Author:
broder
Message:

Generate and install /etc/xen/xend-config.sxp in invirt-xen-config

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-xen-config/debian/invirt-xen-config.init

    • Property svn:executable set to *
    r1257 r1261  
    1010### END INIT INFO
    1111
    12 set -e
     12PACKAGE=invirt-xen-config
     13PARENTPACKAGE=xend
     14GEN_FILES=/etc/xen/xend-config.sxp
    1315
    14 case $1 in
    15     start)
     16dpkg -s "$PACKAGE" >/dev/null 2>/dev/null || exit 0
     17
     18. /lib/init/gen-files.sh
     19. /lib/init/std-init.sh
     20
     21do_start() {
     22    gen_files
     23   
    1624    echo 1 >/proc/sys/net/ipv4/ip_forward
    17     for foo in all default; do
    18     echo 1 >/proc/sys/net/ipv4/conf/$foo/rp_filter
    19     echo 1 >/proc/sys/net/ipv4/conf/$foo/proxy_arp
     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
    2028    done
    21     ;;
    22     esac
     29   
     30    invoke-rc.d "$PARENTPACKAGE" "$1"
     31}
     32
     33do_reload() {
     34    do_start
     35}
     36
     37do_stop() {
     38    invoke-rc.d "$PARENTPACKAGE" "$1"
     39}
     40
     41std_init "$1"
Note: See TracChangeset for help on using the changeset viewer.