Hi I am trying to set up a script in Tomato router that when it runs it will echo a value dependent on the hour. Script written as follow:
However when I execute the script, the following returned:
How to fix it? I am pretty sure I did not ask for an access to any Read-only files
Code:
HOUR=$(date +"%k") if [[ $HOUR >= 0 ] && [ $HOUR < 12 ]];then echo 'Morning' else echo 'Evening' fi
Code:
/tmp/.wxNL0Yv3: line 11: can't create =: Read-only file system Evening