ComputerSteve
Senior Member
I am trying to make a wanevent with this inside it:
#!/bin/sh
wstate1=$(nvram get wan1_state_t)
if [ "$wstate1" -eq 2 ]; then
sleep 30
service stop_wan
sleep 30
service start_wan
fi
I KEEP GETTING THIS ERROR?
./wan-event: line 9: syntax error: unexpected end of file (expecting "fi")
#!/bin/sh
wstate1=$(nvram get wan1_state_t)
if [ "$wstate1" -eq 2 ]; then
sleep 30
service stop_wan
sleep 30
service start_wan
fi
I KEEP GETTING THIS ERROR?
./wan-event: line 9: syntax error: unexpected end of file (expecting "fi")