summaryrefslogtreecommitdiff
blob: 35919c2d0ee0101fb3c7cacc6a4a1c0e1c56db26 (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/udevadm ] && /sbin/udevadm trigger
}