We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c725508 commit 0908be5Copy full SHA for 0908be5
trunk/user/scripts/ap_script.sh
@@ -45,13 +45,14 @@ cat >/tmp/ap2g5g.txt <<-\EOF
45
46
47
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
+
+rt_mode_x=`nvram get rt_mode_x`
+wl_mode_x=`nvram get wl_mode_x`
51
+if [ $rt_mode_x -gt 2 ] || [ $wl_mode_x -gt 2 ]; then
52
cat /tmp/ap2g5g.txt | grep -v '^#' | grep -v "^$" > /tmp/ap2g5g
53
fi
54
killall sh_apauto.sh
-if [ -s /tmp/ap2g5g ] ; then
55
+if [ -f /tmp/ap2g5g ] ; then
56
cat >/tmp/sh_apauto.sh <<-\EOF
57
#!/bin/sh
58
[ "$1" = "crontabs" ] && sleep 15
0 commit comments