summaryrefslogtreecommitdiff
blob: d65d60172330fefa21f3711071b2f7aecdbd4104 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
}