Tinycore is here 12/1/2008! Welcome visitors.
#!/bin/sh# put other system startup commands here/opt/myfw.sh
#!/bin/shiptables -A INPUT -i lo -j ACCEPTiptables -A INPUT -s x.x.x.x -j ACCEPTiptables -A INPUT -s x.x.x.x -j ACCEPTiptables -A INPUT -s x.x.x.x -j ACCEPTiptables -A INPUT -j DROPiptables -A FORWARD --j DROP
#iptables -LChain INPUT (policy ACCEPT)target prot opt SOURCE destinationChain FORWARD (policy ACCEPT)target prot opt SOURCE destinationChain OUTPUT (policy ACCEPT)target prot opt SOURCE destination
#!/bin/sh# put other system startup commands here# Wait for network to come upSEC="60"while [ $SEC -gt 0 ]do SEC=$(($SEC - 1)) ifconfig | grep -q "Bcast:" && break sleep 1doneif [ $SEC -gt 0 ]then echo "$(date +"%m-%d-%y %H:%M:%S") : Starting /opt/myfw.sh" >> /opt/myfw.err /opt/myfw.sh echo "$(date +"%m-%d-%y %H:%M:%S") : Finished /opt/myfw.sh" >> /opt/myfw.errelse echo "$(date +"%m-%d-%y %H:%M:%S") : Network interface is down" >> /opt/myfw.errfi
Then see what got logged to /opt/myfw.err.
/opt/test.sh > /tmp/log.txt 2>&1
#/bin/bash
#/bin/sh
#/bin/env python3
/opt/myfw.sh &
echo "opt/bootlocal.sh" >> /opt/.filetool.lstecho "opt/myfw.sh" >> /opt/.filetool.lstfiletool.sh -b