mirror of
https://github.com/gSpotx2f/luci-app-internet-detector.git
synced 2025-12-17 13:08:29 +03:00
v0.3. Internet detector daemon
This commit is contained in:
42
README.md
42
README.md
@@ -1,21 +1,43 @@
|
||||
# luci-app-internet-detector
|
||||
Internet detector for the LuCI status page (OpenWrt webUI).
|
||||
# Internet detector for OpenWrt.
|
||||
Checking Internet availability.
|
||||
|
||||
OpenWrt >= 19.07.
|
||||
|
||||
Dependences: lua, luci-lib-nixio, libuci-lua
|
||||
|
||||
**Installation notes:**
|
||||
|
||||
wget --no-check-certificate -O /tmp/luci-app-internet-detector_0.2-1_all.ipk https://github.com/gSpotx2f/luci-app-internet-detector/raw/master/packages/19.07/luci-app-internet-detector_0.2-1_all.ipk
|
||||
opkg install /tmp/luci-app-internet-detector_0.2-1_all.ipk
|
||||
rm /tmp/luci-app-internet-detector_0.2-1_all.ipk
|
||||
/etc/init.d/rpcd restart
|
||||
wget --no-check-certificate -O /tmp/internet-detector_0.3.0-1_all.ipk https://github.com/gSpotx2f/luci-app-internet-detector/raw/master/packages/19.07/internet-detector_0.3.0-1_all.ipk
|
||||
opkg install /tmp/internet-detector_0.3.0-1_all.ipk
|
||||
rm /tmp/internet-detector_0.3.0-1_all.ipk
|
||||
|
||||
wget --no-check-certificate -O /tmp/luci-app-internet-detector_0.3.0-1_all.ipk https://github.com/gSpotx2f/luci-app-internet-detector/raw/master/packages/19.07/luci-app-internet-detector_0.3.0-1_all.ipk
|
||||
opkg install /tmp/luci-app-internet-detector_0.3.0-1_all.ipk
|
||||
rm /tmp/luci-app-internet-detector_0.3.0-1_all.ipk
|
||||
/etc/init.d/rpcd reload
|
||||
|
||||
**i18n-ru:**
|
||||
|
||||
wget --no-check-certificate -O /tmp/luci-i18n-internet-detector-ru_0.2-1_all.ipk https://github.com/gSpotx2f/luci-app-internet-detector/raw/master/packages/19.07/luci-i18n-internet-detector-ru_0.2-1_all.ipk
|
||||
opkg install /tmp/luci-i18n-internet-detector-ru_0.2-1_all.ipk
|
||||
rm /tmp/luci-i18n-internet-detector-ru_0.2-1_all.ipk
|
||||
wget --no-check-certificate -O /tmp/luci-i18n-internet-detector-ru_0.3.0-1_all.ipk https://github.com/gSpotx2f/luci-app-internet-detector/raw/master/packages/19.07/luci-i18n-internet-detector-ru_0.3.0-1_all.ipk
|
||||
opkg install /tmp/luci-i18n-internet-detector-ru_0.3.0-1_all.ipk
|
||||
rm /tmp/luci-i18n-internet-detector-ru_0.3.0-1_all.ipk
|
||||
|
||||
**Screenshots:**
|
||||
**Script for LED control:**
|
||||
|
||||

|
||||
|
||||
LED is on when Internet is available. A specific LED can be set in `/etc/internet-detector/run-script` (`LEDN`), either by number or by name from /sys/class/leds/*****. The list of available LEDs can be obtained using the command: `/usr/bin/internet-detector-led.sh list`.
|
||||
|
||||
wget --no-check-certificate -O /usr/bin/internet-detector-led.sh https://github.com/gSpotx2f/luci-app-internet-detector/raw/master/led/usr/bin/internet-detector-led.sh
|
||||
chmod +x /usr/bin/internet-detector-led.sh
|
||||
wget --no-check-certificate -O /etc/internet-detector/run-script https://github.com/gSpotx2f/luci-app-internet-detector/raw/master/led/etc/internet-detector/run-script
|
||||
chmod +x /etc/internet-detector/run-script
|
||||
uci set internet-detector.config.enable_run_script='1'
|
||||
uci commit
|
||||
/etc/init.d/internet-detector restart
|
||||
|
||||
### Screenshots:
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
Reference in New Issue
Block a user