source: trunk/packages/sipb-xen-iptables/debian/sipb-xen-iptables.init @ 1253

Last change on this file since 1253 was 1253, checked in by price, 16 years ago

shorten sipb-xen-iptables initscript with std-init.sh

  • Property svn:executable set to *
File size: 661 bytes
RevLine 
[273]1#! /bin/sh
2### BEGIN INIT INFO
[294]3# Provides:          sipb-xen-iptables
[273]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
[294]8# Short-Description: sipb-xen iptables rules
[273]9# Description:       
10### END INIT INFO
11
[1253]12NAME=sipb-xen-iptables
[294]13DESC="Load the sipb-xen iptables rules"
[1055]14RULES=/usr/share/sipb-xen-iptables/iptables.rules
[1253]15GEN_FILES=$RULES
16PATH=/sbin:/usr/sbin:/bin:/usr/bin
[273]17
[1253]18dpkg -s "$NAME" >/dev/null 2>/dev/null || exit 0
[273]19
[1253]20. /lib/init/gen-files.sh
21. /lib/init/std-init.sh
[273]22
23do_start()
24{
[1253]25        gen_files
[294]26        /sbin/iptables-restore < $RULES
[273]27}
28
29do_stop()
30{
[294]31        return 0
[273]32}
33
[1253]34std_init "$1"
Note: See TracBrowser for help on using the repository browser.