diff options
author | John Klug <john.klug@multitech.com> | 2025-05-22 18:45:39 +0000 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2025-05-22 18:45:39 +0000 |
commit | d9f183a43bc5eaeb15533d077e957c6db04ac276 (patch) | |
tree | a0729386f2c63f4e829703984cda5ab221792c7e /usr/libexec | |
parent | 7cbbda84fc2dcdfbaea0827ba475707283d73388 (diff) | |
download | commissioning-d9f183a43bc5eaeb15533d077e957c6db04ac276.tar.gz commissioning-d9f183a43bc5eaeb15533d077e957c6db04ac276.tar.bz2 commissioning-d9f183a43bc5eaeb15533d077e957c6db04ac276.zip |
Remove Netfilter when commissioning stops to unblock cellular
Diffstat (limited to 'usr/libexec')
-rwxr-xr-x | usr/libexec/commission/nfoff.sh | 1 | ||||
-rwxr-xr-x | usr/libexec/commission/off.sh | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usr/libexec/commission/nfoff.sh b/usr/libexec/commission/nfoff.sh index 54e7cd3..3c302df 100755 --- a/usr/libexec/commission/nfoff.sh +++ b/usr/libexec/commission/nfoff.sh @@ -3,3 +3,4 @@ for handle in $(nft -a list table inet filter | grep iifname | sed -E 's/.*#[[:s echo "Enable wwan0: nft delete rule inet filter input handle ${handle}" nft delete rule inet filter input handle ${handle} done +nft -a list table inet filter diff --git a/usr/libexec/commission/off.sh b/usr/libexec/commission/off.sh index b726744..adf2ce9 100755 --- a/usr/libexec/commission/off.sh +++ b/usr/libexec/commission/off.sh @@ -5,10 +5,9 @@ echo "0" > "$STINV" INIT=$(ps --no-headers -o comm -p1) sleep 30 if [[ ${INIT} == systemd ]] ; then - systemctl stop commission stop + systemctl stop commission systemctl stop commission-php-fpm else /etc/init.d/commission stop 2>&1 | logger -p local0.crit /etc/init.d/commission-php-fpm stop 2>&1 | logger -p local0.crit fi -/usr/libexec/commission/nfoff.sh |