aboutsummaryrefslogtreecommitdiffstats
path: root/community/networkmanager
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2019-07-29 10:14:22 +0200
committerLeo <thinkabit.ukim@gmail.com>2019-07-29 06:12:38 -0300
commit54ad8af826871c04215055e2e60d811581742f21 (patch)
tree4272745ea62b019450d88ccec6939ff56d67cd61 /community/networkmanager
parent5652ede81117f387ea4e7d2f35d359512b2880bd (diff)
downloadaports-54ad8af826871c04215055e2e60d811581742f21.tar.bz2
aports-54ad8af826871c04215055e2e60d811581742f21.tar.xz
community/networkmanager: enable iwd by default
wpa_supplicant on NM has been broken on Alpine for some time now (not showing any SSIDs in the WiFi overview). As such enabling iwd by default allows WiFi to function for all users again.
Diffstat (limited to 'community/networkmanager')
-rw-r--r--community/networkmanager/APKBUILD10
-rw-r--r--community/networkmanager/networkmanager.pre-install4
2 files changed, 6 insertions, 8 deletions
diff --git a/community/networkmanager/APKBUILD b/community/networkmanager/APKBUILD
index 979d1a70f2..3f87847374 100644
--- a/community/networkmanager/APKBUILD
+++ b/community/networkmanager/APKBUILD
@@ -2,12 +2,12 @@
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=networkmanager
pkgver=1.18.2
-pkgrel=0
+pkgrel=1
pkgdesc="Network Management daemon"
url="https://wiki.gnome.org/Projects/NetworkManager"
arch="all"
license="GPL-2.0-or-later"
-depends="dhcpcd iptables dbus"
+depends="dhcpcd iptables dbus iwd"
install="$pkgname.pre-install $pkgname.pre-upgrade"
makedepends="$depends_dev
curl-dev
@@ -97,11 +97,11 @@ package() {
mkdir -p "$pkgdir/usr/share/apk-tools/$pkgname"
# post-install message
mv "$pkgdir/usr/share/doc/NetworkManager" "$pkgdir/usr/share/doc/$pkgname"
- cat > $pkgdir/usr/share/doc/$pkgname/README.alpine <<EOF
+ cat > "$pkgdir"/usr/share/doc/$pkgname/README.alpine <<EOF
To modify system network connections without the root password: add your user account to the 'plugdev' group, or use Polkit.
+EOF
-To use iwd instead of the default wpa_supplicant install iwd, start its service and the following to your /etc/NetworkManager/NetworkManager.conf:
-
+ cat > "$pkgdir"/etc/NetworkManager/conf.d/iwd.conf <<EOF
[device]
wifi.backend=iwd
EOF
diff --git a/community/networkmanager/networkmanager.pre-install b/community/networkmanager/networkmanager.pre-install
index 26811dfb09..266fb41248 100644
--- a/community/networkmanager/networkmanager.pre-install
+++ b/community/networkmanager/networkmanager.pre-install
@@ -2,8 +2,6 @@
addgroup -S plugdev 2>/dev/null
-printf " *\n * To setup system connections, regular users must be member of 'plugdev' group.\n *\n"
-printf " *\n * To control WiFi devices, enable wpa_supplicant service: 'rc-update add wpa_supplicant default'\n"
-printf " * then reboot the system or restart 'wpa_supplicant' and 'networkmanager' services respectively.\n *\n"
+printf " *\n * To setup system connections, regular users must either use Polkit for authentication or be a member of the 'plugdev' group."
exit 0