so I revisited these scripts and noticed a change where
vpn_led=/sys/devices/platform/leds-gpio/leds/gl-usb150:green:wlan/brightness
vpn_trig=/sys/devices/platform/leds-gpio/leds/gl-usb150:green:wlan/trigger
is now called
vpn_led=/sys/devices/platform/leds/leds/gl-usb150:orange:wlan/brightness
vpn_trig=/sys/devices/platform/leds/leds/gl-usb150:orange:wlan/trigger
and also you must go into http://192.168.22.1/cgi-bin/luci/admin/system/leds
and change ath9k-phy0 to gl-usb150:orange:wlan
this may be something different in the 3.2-19.07.7 or perhaps a gl-enhancement
(we never call it a bug or a mistake to the good guys) both leds on the device are physically green and I don’t remember what version I wrote this for. if someone could please verify if theirs is green or orange for wlan that has done a fresh install. I believe mine was an upgrade.
and a quick note that */1 means every minute in the crontab so */5 means every five minutes. and one last note if your wireguard tunnel is something other than 10.0.x.x or openvpn tunnel is something other than 10.8.x.x you can change the the two instances of ‘’’
if [ "$first_hop" == "10.8" ] && [ "$enabled" == "1" ];then
to
if [ "$first_hop" == "10.8" ] || [ "$enabled" == "1" ];then
and
elif [ "$first_hop" == "10.0" ] && [ "$wgenabled" == "1" ]; then
to
elif [ "$first_hop" == "10.0" ] || [ "$wgenabled" == "1" ]; then
1 Like