Browse Source

interfaces : switch userled on and off if AP mode is enabled

Reinhard Russinger 6 năm trước cách đây
mục cha
commit
2e4b3cf37f
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      board/PSG/iot2000/rootfs_overlay/etc/network/interfaces

+ 3 - 1
board/PSG/iot2000/rootfs_overlay/etc/network/interfaces

@@ -22,8 +22,10 @@ iface usb0 inet static
 
 iface wlan0 inet static
 	post-up hostapd -B /etc/hostapd/hostapd.conf
+	post-up echo 1 > /sys/class/leds/mpio_uart_led\:red\:user/brightness
 	address 192.168.10.200
 	netmask 255.255.255.0
 	broadcast 192.168.10.255
+	down echo 0 > /sys/class/leds/mpio_uart_led\:red\:user/brightness
 	down killall hostapd
-	down ip addr flush dev $IFACE
+	down ip addr flush dev wlan0