Skip to content
Snippets Groups Projects
Commit c7bfb812 authored by Oliver Smith's avatar Oliver Smith Committed by alice
Browse files

main/util-linux: fix rfkill.initd initial restore

Cosmetic fix for not cluttering openrc output:

 * Restoring rfkill configuration ...cat: can't open '/var/lib/rfkill/*': No such file or directory
Try 'rfkill --help' for more information.
 [ ok ]
parent f3929212
No related merge requests found
......@@ -3,7 +3,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=util-linux
pkgver=2.38.1
pkgrel=0
pkgrel=1
pkgdesc="Random collection of Linux utilities"
url="https://git.kernel.org/cgit/utils/util-linux/util-linux.git"
arch="all"
......@@ -354,6 +354,6 @@ sha512sums="
88736b554b60f836357a29f537d51658bb487dd316c92cc5160ba06bed5f8cf8e34bbfb8eb7370c4e4a2e75997a6e4bd2058201d227e41f83a18abbf4a73bdbd utmps.patch
876bb9041eca1b2cca1e9aac898f282db576f7860aba690a95c0ac629d7c5b2cdeccba504dda87ff55c2a10b67165985ce16ca41a0694a267507e1e0cafd46d9 ttydefaults.h
401d2ccbdbfb0ebd573ac616c1077e2c2b79ff03e9221007759d8ac25eb522c401f705abbf7daac183d5e8017982b8ec5dd0a5ebad39507c5bb0a9f31f04ee97 rfkill.confd
c4e7ba6d257496c99934add2ca532db16fb070ea2367554587c9fb4e24ab1d80b8ba3fd0fd4fdd5ef1374c3ec6414007369b292ee334ef23171d0232ef709db2 rfkill.initd
b0e11226c611fd52d54f599a40d23c4f748d5bd6971732dba2d25581aedaf5d2c62bcb49515d175569ff9aa1cf49a3dff25d1a5d4dcd89428c7020fc7ea3a581 rfkill.initd
8d1c7043719af9ee1473fdb482e054ca0e0fa1ac673cb9c7db96a6aad00382456225dea05267dab96e19d5f444a00681e8dbaf7399100c75424fd388d48ad68b login.pamd
"
......@@ -13,11 +13,13 @@ depend() {
restore() {
ebegin "Restoring rfkill configuration"
for type in "$rfkillstatedir"/*; do
status=$(cat "$type")
type=$(basename "$type")
rfkill "$status" "$type"
done
if [ -d "$rfkillstatedir" ]; then
for type in "$rfkillstatedir"/*; do
status=$(cat "$type")
type=$(basename "$type")
rfkill "$status" "$type"
done
fi
eend 0
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment