Re: How to start IPTABLES script automatically on boot.
Code:
update-rc.d <name of script> defaults
this will make links as per below:
HTML Code:
root@alice:/root# update-rc.d firewall.sh defaults
update-rc.d: warning: /etc/init.d/firewall.sh missing LSB style header
Adding system startup for /etc/init.d/firewall.sh ...
/etc/rc0.d/K20firewall.sh -> ../init.d/firewall.sh
/etc/rc1.d/K20firewall.sh -> ../init.d/firewall.sh
/etc/rc6.d/K20firewall.sh -> ../init.d/firewall.sh
/etc/rc2.d/S20firewall.sh -> ../init.d/firewall.sh
/etc/rc3.d/S20firewall.sh -> ../init.d/firewall.sh
/etc/rc4.d/S20firewall.sh -> ../init.d/firewall.sh
/etc/rc5.d/S20firewall.sh -> ../init.d/firewall.sh
Ubuntu 8.04/Dell Inspiron 700m Intel Celeron D 1.67Ghz 756MB G.Skill/60GB HDD
Ubuntu 8.10 Intrepid AMD64bit SE/Custom XFX mobo/AMD Phenom X3 2.1Ghz/4GB G.Skill DDR2 800Mhz/1840GB HDD(4)
Bookmarks