1#!/bin/sh /etc/rc.common 2START=19 3. /lib/cfgmgr/cfgmgr.sh 4. /lib/cfgmgr/enet.sh 5 6detect_wan_port_status() 7{ 8 if [ "x$(detcable show | grep "WAN : Plug off")" != "x" ]; then 9 echo -n 0 > /tmp/port_status 10 else 11 echo -n 1 > /tmp/port_status 12 ledcontrol -n wan -c amber -s on 13 fi 14} 15 16boot() 17{ 18 et_init 19 detect_wan_port_status 20 /etc/init.d/qca-nss-ecm start 21} 22 23