summaryrefslogtreecommitdiffstats
path: root/main/openrc/modloop.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-08-26 18:46:50 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-08-26 18:46:50 +0000
commit3d868571104f9a6a5c7a13280586466c5ce17faf (patch)
tree8b95ccda2fe0440db0d81a1657078a214a8b77d6 /main/openrc/modloop.initd
parent9e9307da3c2d4361488bdf10602dd190bc855119 (diff)
downloadaports-3d868571104f9a6a5c7a13280586466c5ce17faf.tar.bz2
aports-3d868571104f9a6a5c7a13280586466c5ce17faf.tar.xz
main/openrc: look for firmware within the modloop
ref #739
Diffstat (limited to 'main/openrc/modloop.initd')
-rw-r--r--main/openrc/modloop.initd3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/openrc/modloop.initd b/main/openrc/modloop.initd
index 1a12f6fcc..d2cff4e6a 100644
--- a/main/openrc/modloop.initd
+++ b/main/openrc/modloop.initd
@@ -106,6 +106,9 @@ start() {
ebegin "Copying firmware from $alpine_mnt/firmware"
cp -R -a $alpine_mnt/firmware /lib/
eend $?
+ elif [ -d /lib/modules/firmware ]; then
+ rmdir /lib/firmware 2>/dev/null \
+ && ln -s /lib/modules/firmware /lib/
fi
}