Quantcast
Channel: Tomato Firmware
Viewing all articles
Browse latest Browse all 11025

Tomato router "can't create =: Read-only file system"

$
0
0
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:
Code:
HOUR=$(date +"%k")

if [[ $HOUR >= 0 ] && [ $HOUR < 12 ]];then
    echo 'Morning'
else
    echo 'Evening'
fi
However when I execute the script, the following returned:
Code:
/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

Viewing all articles
Browse latest Browse all 11025

Trending Articles