SwizItalo
Occasional Visitor
- So i made a script at "/jffs/scripts" (the folder scripts wasnt there, so i made it)
- Enabled JFFS custom scripts and configs on webui
- chmod 777 file services-start
- The script runs ok when i manually execute it "/jffs/scripts# sh services-start" but it won't launch on start up
Code:
#!/bin/sh
sleep 20
# Wifi On
nvram set wl0_radio=1
nvram set wl1_radio=1
service restart_wireless
# Linksys logo
/jffs/bin/gpio 6 0
When i run it manually it says :
But the script runs fine, except the sleep command is wrong? and dont have time to execute the next commands in the moment of startup?'leep: invalid number '20
By the way, i don't understand why the error says 'leep and no sleep
Last edited: