Trying to chmod and run a shell script at startup
I am not sure if I am doing this correctly. But i've spent over 2 hours and and don't understand why it's not working.
#!/bin/sh -e chmod +x /root/startup.sh && /root/startup.sh exit 0
#!/bin/bash /sbin/iptables -A INPUT -p TCP --syn --dport 80 -m recent --set /sbin/iptables -A INPUT -p TCP --syn --dport 80 -m recent --update --seconds 10 --hitcount 10 -j DROP
In fact, the chmod does work correctly on
reboot, however the startup.sh doesn't get executed. Any help / insight is appreciated!