Skip to content

Commit

Permalink
add configuration option for ffac-private-wan-dhcp
Browse files Browse the repository at this point in the history
fix shellcheck
  • Loading branch information
maurerle committed Jul 22, 2024
1 parent e3e0b5a commit c557142
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ffac-private-wan-dhcp/files/etc/config/private-wan-dhcp
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
config settings 'settings'
option enabled '0'
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
if [ "$INTERFACE" = 'wan' -o "$INTERFACE" = 'wan6' -o "$INTERFACE" = 'cellular_4' -o "$INTERFACE" = 'cellular_6' ]; then
ENABLED=$(uci get private-wan-dhcp.settings.enabled)

[ "${ENABLED}" != "1" ] && exit 0

if [ "$INTERFACE" = 'wan' ] || [ "$INTERFACE" = 'wan6' ] || [ "$INTERFACE" = 'cellular_4' ] || [ "$INTERFACE" = 'cellular_6' ]; then
/lib/gluon/private-wan-dhcp-nat/update.lua
fi

0 comments on commit c557142

Please sign in to comment.