#! /bin/sh /usr/share/dpatch/dpatch-run ## 16_init.d_lsb_functions.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: No description. @DPATCH@ diff -urNad firestarter-1.0.3~/debian/control firestarter-1.0.3/debian/control --- firestarter-1.0.3~/debian/control 2007-03-08 14:39:03.000000000 +0000 +++ firestarter-1.0.3/debian/control 2007-03-08 15:21:51.000000000 +0000 @@ -8,7 +8,7 @@ Package: firestarter Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends}, iptables (>= 1.2.11), gksu (>= 0.8.5) +Depends: ${shlibs:Depends}, ${misc:Depends}, iptables (>= 1.2.11), gksu (>= 0.8.5), lsb-base (>= 3.0-10) Suggests: dhcp3-server Description: gtk program for managing and observing your firewall Firestarter is a complete firewall tool for Linux machines. It diff -urNad firestarter-1.0.3~/debian/firestarter.init firestarter-1.0.3/debian/firestarter.init --- firestarter-1.0.3~/debian/firestarter.init 2007-03-08 14:39:03.000000000 +0000 +++ firestarter-1.0.3/debian/firestarter.init 2007-03-08 15:20:54.000000000 +0000 @@ -12,6 +12,8 @@ # # config: /etc/firestarter/configuration +. /lib/lsb/init-functions + FS_CONTROL="/etc/firestarter/firestarter.sh" [ -x /usr/sbin/firestarter ] || exit 0 @@ -21,37 +23,37 @@ RETVAL=0 start() { - echo -n "Starting the Firestarter firewall: " + log_begin_msg "Starting the Firestarter firewall..." $FS_CONTROL start > /dev/null RETVAL=$? if [ $RETVAL -eq 0 ]; then - echo done. + log_end_msg 0 else - echo failed. + lon_end_msg 1 fi return $RETVAL } stop() { - echo -n "Stopping the Firestarter firewall:" + log_begin_msg "Stopping the Firestarter firewall..." $FS_CONTROL stop > /dev/null RETVAL=$? if [ $RETVAL -eq 0 ]; then - echo done. + log_end_msg 0 else - echo failed. + log_end_msg 1 fi return $RETVAL } lock() { - echo -n "Locking the Firestarter firewall:" + log_begin_msg "Locking the Firestarter firewall..." $FS_CONTROL lock > /dev/null RETVAL=$? if [ $RETVAL -eq 0 ]; then - echo done. + log_end_msg 0 else - echo failed. + log_end_msg 1 fi return $RETVAL } @@ -82,14 +84,14 @@ ;; status) if [ -e /var/lock/subsys/firestarter -o -e /var/lock/firestarter ]; then - echo "Firestarter is running..." + log_warning_msg "Firestarter is running..." else - echo "Firestarter is stopped" + log_warning_msg "Firestarter is stopped" fi RETVAL=$? ;; *) - echo "Usage: firestarter {start|stop|restart|force-reload|lock|status}" + log_success_msg "Usage: firestarter {start|stop|restart|force-reload|lock|status}" exit 1 esac exit $RETVAL