summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2011-02-15 16:50:09 -0600
committerWilliam Hubbs <williamh@gentoo.org>2011-04-30 21:46:14 -0500
commit5bdfa8ccc47ac834adab356dc0d8dfb184ff1e59 (patch)
treeb819f2bef1914939e0454a6a43be58adfa0985f7 /init.d/firmware
parentstart gpm-pre before gpm from autoconfig (diff)
downloadlivecd-tools-5bdfa8ccc47ac834adab356dc0d8dfb184ff1e59.tar.gz
livecd-tools-5bdfa8ccc47ac834adab356dc0d8dfb184ff1e59.tar.bz2
livecd-tools-5bdfa8ccc47ac834adab356dc0d8dfb184ff1e59.zip
split out firmware extraction and hwsetup
Firmware extraction and hwsetup are now separate services.
Diffstat (limited to 'init.d/firmware')
-rwxr-xr-xinit.d/firmware22
1 files changed, 22 insertions, 0 deletions
diff --git a/init.d/firmware b/init.d/firmware
new file mode 100755
index 0000000..d65d601
--- /dev/null
+++ b/init.d/firmware
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+# This unpacks any firmware tarballs.
+
+depend() {
+ :
+}
+
+start() {
+einfo checking for firmware to unpack
+ if [ -e /lib/firmware.tar.bz2 ]
+ then
+ ebegin "Unpacking firmware"
+ mkdir -p /lib/firmware
+ tar xjf /lib/firmware.tar.bz2 -C /lib/firmware
+ eend 0
+ fi
+ [ -x /sbin/udevtrigger ] && /sbin/udevtrigger
+}