Skip to content

Commit

Permalink
fixup! omnia-5g-kit: Fix postinst script
Browse files Browse the repository at this point in the history
  • Loading branch information
miska committed Sep 4, 2024
1 parent 452f5db commit 1e64c65
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions hardware/omnia/omnia-5g-kit/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ define Package/omnia-5g-kit/postinst
#!/bin/sh
[ -n "$$IPKG_INSTROOT" ] || {
/etc/init.d/5g-kit start
uci -q delete network.gsm || :
uci batch << EOF
delete network.gsm
set network.gsm=interface
set network.gsm.proto='dhcp'
set network.gsm.device='usb0'
Expand All @@ -58,7 +58,7 @@ set network.gsm6.ip6ifaceid='eui64'
set network.gsm6.ip6assign='64'
set watchcat.5gkit='watchcat'
set watchcat.5gkit.period='30s'
set watchcat.5gkit.mode='restart_iface
set watchcat.5gkit.mode='restart_iface'
set watchcat.5gkit.pinghosts='1.1.1.1 8.8.8.8 9.9.9.9'
set watchcat.5gkit.interface='usb0'
EOF
Expand All @@ -82,9 +82,9 @@ define Package/omnia-5g-kit/prerm
#!/bin/sh
[ -n "$$IPKG_INSTROOT" ] || {
fw_setenv omnia_wwan_slot pcie
uci -q delete network.gsm
uci -q delete network.gsm6
uci -q delete watchcat.5gkit
uci -q delete network.gsm || :
uci -q delete network.gsm6 || :
uci -q delete watchcat.5gkit || :
uci commit network
uci commit watchcat
zone="$$(uci show firewall | sed -n 's|^\(firewall\.@zone.*\)\.name=.wan.$$|\1|p')"
Expand Down

0 comments on commit 1e64c65

Please sign in to comment.