summaryrefslogtreecommitdiff
blob: 30d07c926b29eb9c096efe2ae04624b845cacdc4 (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
}