summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2005-01-23 19:24:48 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2005-01-23 19:24:48 +0000
commitae371b79a25be1631ebe601e3fd4014f37b00029 (patch)
tree337edd219935b7d11a998bcc9721fdf515e1d049 /sys-apps/hotplug/files
parentAdd new Version 0.6.4. (diff)
downloadhistorical-ae371b79a25be1631ebe601e3fd4014f37b00029.tar.gz
historical-ae371b79a25be1631ebe601e3fd4014f37b00029.tar.bz2
historical-ae371b79a25be1631ebe601e3fd4014f37b00029.zip
Updated hotplug.rc.empty to unpack firmware tarball. This is used by the LiveCD to allow /lib/firmware to be tmpfs without losing any firmwares that were installed on the LiveCD and allows users to provide their own firmwares.
Package-Manager: portage-2.0.51-r14
Diffstat (limited to 'sys-apps/hotplug/files')
-rw-r--r--sys-apps/hotplug/files/hotplug.rc.empty9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys-apps/hotplug/files/hotplug.rc.empty b/sys-apps/hotplug/files/hotplug.rc.empty
index 451e641a0b65..abb01fcd8429 100644
--- a/sys-apps/hotplug/files/hotplug.rc.empty
+++ b/sys-apps/hotplug/files/hotplug.rc.empty
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/hotplug/files/hotplug.rc.empty,v 1.1 2004/09/21 00:13:47 gregkh Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/hotplug/files/hotplug.rc.empty,v 1.2 2005/01/23 19:24:48 wolf31o2 Exp $
#
# nothing here anymore. Please use the coldplug package if you really want to
@@ -24,4 +24,11 @@ start () {
eerror "CONFIG_HOTPLUG not enabled for this kernel!"
return 1
fi
+ # This unpacks any firmware tarballs. Used for LiveCD.
+ if [ -e /lib/firmware.tar.bz2 ]
+ then
+ ebegin "Unpacking hotplug frmware"
+ tar xjf /lib/firmware.tar.bz2 -C /lib/firmware
+ eend 0
+ fi
}