Skip to content

Commit 0908be5

Browse files
committed
add AP relay daemon
1 parent c725508 commit 0908be5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

trunk/user/scripts/ap_script.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,14 @@ cat >/tmp/ap2g5g.txt <<-\EOF
4545
4646
4747
EOF
48-
rt_mode_x=$(nvram get rt_mode_x)
49-
wl_mode_x=$(nvram get wl_mode_x)
50-
if [[ $rt_mode_x > 2 || $wl_mode_x > 2 ]]; then
48+
49+
rt_mode_x=`nvram get rt_mode_x`
50+
wl_mode_x=`nvram get wl_mode_x`
51+
if [ $rt_mode_x -gt 2 ] || [ $wl_mode_x -gt 2 ]; then
5152
cat /tmp/ap2g5g.txt | grep -v '^#' | grep -v "^$" > /tmp/ap2g5g
5253
fi
5354
killall sh_apauto.sh
54-
if [ -s /tmp/ap2g5g ] ; then
55+
if [ -f /tmp/ap2g5g ] ; then
5556
cat >/tmp/sh_apauto.sh <<-\EOF
5657
#!/bin/sh
5758
[ "$1" = "crontabs" ] && sleep 15

0 commit comments

Comments
 (0)