ayaports/backports/iwd/iwd.post-upgrade

18 lines
463 B
Text
Raw Normal View History

2023-04-23 16:14:27 -04:00
#!/bin/sh
ver_old=$2
if [ "$(apk version -t "$ver_old" "1.15-r1")" = '<' ]; then
cat >&2 <<-EOF
*
* ead (Ethernet authentication daemon) has been moved from "iwd" into a
* separate package "ead". If you use it: apk add ead.
*
EOF
fi
if [ -f /etc/iwd/main.conf ]; then
sed -i -e s/enable_network_config=True/EnableNetworkConfiguration=True/ /etc/iwd/main.conf
sed -i -e s/resolve_method=resolvconf/NameResolvingService=resolvconf/ /etc/iwd/main.conf
fi