The PSC scripts seems to manage activation and deactivation by setting or unsetting execution permission to file /etc/rc4.d/S-firewall.sh which it creates if doesn't exits.
So when you select 'Activate firewall when Porteus starts' checkbox the PSC script run a 'chmod +x /etc/rc.d/rc4.d/S-firewall.sh' command and if not checked it runs the same chmod command but with -x argument.
Code: Select all
----file /opt/porteus-scripts/porteus-settings-centre ----
'`chkbox $FWALL chkFirewall "Activate firewall when Porteus starts"`'
<action>if true chmod +x /etc/rc.d/rc4.d/S-firewall.sh</action>
<action>if false chmod -x /etc/rc.d/rc4.d/S-firewall.sh</action>
<action>if true cp -a --parents /etc/rc.d/rc4.d/S-firewall.sh $PSC_SETTINGS</action>
<action>if false cp -a --parents /etc/rc.d/rc4.d/S-firewall.sh $PSC_SETTINGS</action></checkbox>
Code: Select all
----file /etc/rc.d/rc.services ----
# Enable firewall:
[ -x /etc/rc.d/rc.FireWall ] && sh /etc/rc.d/rc.FireWall start &
Code: Select all
# chmod a-x /etc/rc.d/rc.FireWall
Is this ok? or I am misunderstanding something...