Changeset 18185
- Timestamp:
- 01/15/12 16:18:41 (17 months ago)
- File:
-
- 1 edited
-
src/router/services/sysinit/sysinit-ubntm.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/router/services/sysinit/sysinit-ubntm.c
r17372 r18185 95 95 96 96 int brand = getRouterBrand(); 97 if (brand==ROUTER_BOARD_UNIFI) 98 { 99 setWirelessLed(0,0); 100 }else{ 101 system2("echo 0 >/proc/sys/dev/wifi0/softled"); 97 if (brand == ROUTER_BOARD_UNIFI) { 98 setWirelessLed(0, 0); 99 } else { 100 system2("echo 0 >/proc/sys/dev/wifi0/softled"); 101 sysprintf 102 ("/sbin/wlanled -l generic_0:1 -l generic_1:15 -l generic_11:22 -l generic_7:30"); 102 103 } 103 104 104 /* ubnt has a hardware fault as it seems, so the power bridge feature can break the hardware which causes endless reboot loops. we keep it disabled here. devices which are already broken will work again then */ 105 if (nvram_match("ubnt_power", "1"))106 eval("gpio","enable","8");//enable power passthrough105 /* ubnt has a hardware fault as it seems, so the power bridge feature can break the hardware which causes endless reboot loops. we keep it disabled here. devices which are already broken will work again then */ 106 if (nvram_match("ubnt_power", "1")) 107 eval("gpio", "enable", "8"); //enable power passthrough 107 108 108 109 /*
Note: See TracChangeset
for help on using the changeset viewer.
