Skip to content
This repository was archived by the owner on Mar 2, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions net/goeap_proxy/files/etc/init.d/goeap_proxy
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ start_service()
config_get router global router
config_get_bool ignore_logoff global 'ignore_logoff' '0'

local if_wan=$(uci get "network.${wan}.ifname")
local if_router=$(uci get "network.${router}.ifname")
local if_wan=$(uci get "network.${wan}.device")
local if_router=$(uci get "network.${router}.device")

procd_open_instance
# attempt to restart every 30 seconds, the eap proxy for internet connectivity
procd_set_param respawn ${respawn_threshold:-3600} ${respawn_timeout:-30} ${respawn_retry:-0}
procd_set_param stdout 1
procd_set_param stderr 1
procd_set_param command $PROG
procd_append_param command "${if_wan}"
procd_append_param command "${if_router}"
procd_append_param command "-if-wan" "${if_wan}"
procd_append_param command "-if-router" "${if_router}"
if [ $ignore_logoff != "0" ]; then
procd_append_param command -ignore-logoff
fi
Expand Down