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:
HOUR=$(date +"%k")
if [[ $HOUR >= 0 ] && [ $HOUR < 12 ]];then
echo 'Morning'
else
echo 'Evening'
fi
However when I execute the script, the following returned:
/tmp/.wxNL0Yv3: line 11: can't create =: Read-only file system
Evening
How to fix it? I am pretty sure I did not ask for an access to any Read-only files