Skip to content

Commit

Permalink
sed fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Anonym-tsk committed Oct 18, 2024
1 parent b740a73 commit 757b7f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/ipk/common
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ fast_install_func() {
install)
# Interface
DEF_IFACE=$(isp_interface_func)
sed -i -E "s#ISP_INTERFACE=\".+\"#ISP_INTERFACE=\"$DEF_IFACE\"#" $CONFFILE
sed -i -E "s#^ISP_INTERFACE=\".+\"#ISP_INTERFACE=\"$DEF_IFACE\"#" $CONFFILE
echo "Detected ISP interface: $DEF_IFACE"

# IPv6
IPV6=$(ipv6_enabled_func "$DEF_IFACE" && echo 1 || echo 0)
sed -i -E "s#IPV6_ENABLED=(1|0)#IPV6_ENABLED=$IPV6#" $CONFFILE
sed -i -E "s#^IPV6_ENABLED=(1|0)#IPV6_ENABLED=$IPV6#" $CONFFILE
echo "Detected IPv6: $IPV6"

# Config paths
Expand Down

0 comments on commit 757b7f4

Please sign in to comment.