From abc4eef1e9fe3bce53a0edba3f1ccda0f61e5d42 Mon Sep 17 00:00:00 2001
From: Stacy Harper <contact@stacyharper.net>
Date: Tue, 25 May 2021 16:46:20 +0200
Subject: [PATCH] sxmo/sxmo-utils: add networkmanager as dependency (MR 2197)

---
 sxmo/sxmo-utils/APKBUILD                 | 4 ++--
 sxmo/sxmo-utils/sxmo-utils.post-install  | 3 ---
 sxmo/sxmo-utils/sxmo-utils.pre-deinstall | 3 ---
 3 files changed, 2 insertions(+), 8 deletions(-)
 delete mode 100644 sxmo/sxmo-utils/sxmo-utils.post-install
 delete mode 100644 sxmo/sxmo-utils/sxmo-utils.pre-deinstall

diff --git a/sxmo/sxmo-utils/APKBUILD b/sxmo/sxmo-utils/APKBUILD
index 2f2fcc701..99b160c52 100644
--- a/sxmo/sxmo-utils/APKBUILD
+++ b/sxmo/sxmo-utils/APKBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Miles Alan <m@milesalan.com>
 pkgname=sxmo-utils
 pkgver=1.4.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Utility scripts, programs, and configs that hold the Sxmo UI environment together"
 url="https://git.sr.ht/~mil/sxmo-utils"
 arch="all"
@@ -30,6 +30,7 @@ depends="
 	inotify-tools
 	mediainfo
 	modemmanager
+	networkmanager
 	mpv
 	ncurses
 	sfeed
@@ -59,7 +60,6 @@ depends="
 options="!check" # has no tests
 subpackages="$pkgname-openrc"
 source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~mil/sxmo-utils/archive/$pkgver.tar.gz"
-install="$pkgname.post-install $pkgname.pre-deinstall"
 
 package() {
 	mkdir -p "$pkgdir/etc/modules-load.d/"
diff --git a/sxmo/sxmo-utils/sxmo-utils.post-install b/sxmo/sxmo-utils/sxmo-utils.post-install
deleted file mode 100644
index 169536310..000000000
--- a/sxmo/sxmo-utils/sxmo-utils.post-install
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-rc-update add modemmanager default || echo "please add modemmanager to the default runlevel"
diff --git a/sxmo/sxmo-utils/sxmo-utils.pre-deinstall b/sxmo/sxmo-utils/sxmo-utils.pre-deinstall
deleted file mode 100644
index 40d5ee6d8..000000000
--- a/sxmo/sxmo-utils/sxmo-utils.pre-deinstall
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-rc-update del modemmanager || echo "please remove modemmanager from default runlevel"