mirror of
https://github.com/gSpotx2f/luci-app-internet-detector.git
synced 2026-01-01 06:09:02 +03:00
v0.5. New modules, refactoring
This commit is contained in:
@@ -4,22 +4,43 @@ config main 'config'
|
||||
list hosts '1.1.1.1'
|
||||
option check_type '0'
|
||||
option tcp_port '53'
|
||||
|
||||
config main 'ui_config'
|
||||
option interval_up '6'
|
||||
option interval_down '1'
|
||||
option connection_attempts '1'
|
||||
option connection_timeout '1'
|
||||
|
||||
config main 'service_config'
|
||||
option interval_up '30'
|
||||
option interval_down '5'
|
||||
option connection_attempts '2'
|
||||
option connection_timeout '2'
|
||||
option enable_logger '1'
|
||||
option enable_up_script '0'
|
||||
option enable_down_script '0'
|
||||
option enable_run_script '0'
|
||||
option ui_interval_up '6'
|
||||
option ui_interval_down '1'
|
||||
option ui_connection_attempts '1'
|
||||
option ui_connection_timeout '1'
|
||||
option service_interval_up '30'
|
||||
option service_interval_down '5'
|
||||
option service_connection_attempts '2'
|
||||
option service_connection_timeout '2'
|
||||
option service_enable_logger '1'
|
||||
|
||||
config module 'mod_led_control'
|
||||
option enabled '0'
|
||||
|
||||
config module 'mod_reboot'
|
||||
option enabled '0'
|
||||
option dead_period '3600'
|
||||
option force_reboot_delay '300'
|
||||
|
||||
config module 'mod_network_restart'
|
||||
option enabled '0'
|
||||
option dead_period '900'
|
||||
option attempts '1'
|
||||
option restart_timeout '0'
|
||||
|
||||
config module 'mod_modem_restart'
|
||||
option enabled '0'
|
||||
option dead_period '600'
|
||||
option any_band '1'
|
||||
|
||||
config module 'mod_email'
|
||||
option enabled '0'
|
||||
option alive_period '0'
|
||||
option mail_smtp 'smtp.gmail.com'
|
||||
option mail_smtp_port '587'
|
||||
option mail_security 'tls'
|
||||
|
||||
config module 'mod_user_scripts'
|
||||
option enabled '0'
|
||||
option alive_period '0'
|
||||
option dead_period '0'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=99
|
||||
START=97
|
||||
STOP=01
|
||||
|
||||
ID="/usr/bin/internet-detector"
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
# Shell commands that are executed every time the Internet is checked for availability
|
||||
#
|
||||
# $1 - (0|1) - internet status: 0 is up, 1 is down
|
||||
#
|
||||
Reference in New Issue
Block a user