I build a Slackware package of Firestarter and here is the rc.firewall script that I use:
Code:
#!/bin/bash
#rc.firewall start/stop/restart the Firestarter firewall service
#
firewall_start () {
if [ -x /etc/firestarter/firestarter.sh ]; then
echo "Starting firewall: /etc/firestarter/firestarter.sh"
/etc/firestarter/firestarter.sh start
fi
}
firewall_stop () {
/etc/firestarter/firestarter.sh stop
}
firewall_restart () {
/etc/firestarter/firestarter.sh stop
/etc/firestarter/firestarter.sh start
}
case "$1" in
'start')
firewall_start
;;
'stop')
firewall_stop
;;
'restart')
firewall_restart
;;
*)
echo "usage $0 start|stop|restart"
esac
Create a file named rc.firewall in /etc/rc.d, add the above to it and it will automatically start each time you boot your PC as it is called by rc.inet2 so there is no need to put it in rc.local. Also you MUST be root to make any changes to the firewall so you won't be able to start Firestarter as a normal user. My workaround is to use libgnomesu (which I also package for Slackware) and add gnomesu firestarter to the Exec= line of firestarter.desktop. This way you will be asked for the root password when clicking on the Firestarter menu entry in Applications --> System Tools.
Later,
MMYoung