summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'init.d/autoconfig')
-rwxr-xr-xinit.d/autoconfig30
1 files changed, 5 insertions, 25 deletions
diff --git a/init.d/autoconfig b/init.d/autoconfig
index 55fbcfd..e2655a6 100755
--- a/init.d/autoconfig
+++ b/init.d/autoconfig
@@ -272,6 +272,10 @@ list_services() {
svcs="${svcs} $(check_svc ${APM} apmd)"
svcs="${svcs} $(check_svc ${BRLTTY} brltty)"
svcs="${svcs} $(check_svc ${COLDPLUG} coldplug hotplug)"
+ if yesno "$COLDPLUG" && ! rc-service -e coldplug && ! rc-service -e hotplug
+ then
+ echo firmware hwsetup
+ fi
svcs="${svcs} $(check_svc ${GPM} gpm-pre)"
svcs="${svcs} $(check_svc ${GPM} gpm)"
svcs="${svcs} $(check_svc ${IDEDMA} hdparm)"
@@ -287,17 +291,6 @@ list_services() {
echo ${svcs}
}
-unpack_firmware() {
- # This unpacks any firmware tarballs.
- 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
-}
-
get_info() {
local tmp
@@ -460,21 +453,8 @@ start() {
ewarn "Hardware detection disabled via cmdline ..."
fi
- # Now, we check if we are supposed to run a coldplug script.
- if yesno "${COLDPLUG}"
+ if ! yesno "${COLDPLUG}"
then
- # Check whether we should be using hotplug/coldplug or whether we should
- # just let udev do it all.
- # coldplug+hotplug would already be up due to list_services
- if ! rc-service -e coldplug && ! rc-service -e hotplug
- then
- # TODO: This needs to go to a seperate script, so that hwsetup can depend on it.
- unpack_firmware
- [ -x /sbin/udevtrigger ] && /sbin/udevtrigger
- fi
- [ -e /etc/sysconfig ] || mkdir -p /etc/sysconfig
- [ -x /usr/sbin/hwsetup ] && hwsetup
- else
ewarn "Hotplug/Coldplug disabled via cmdline ..."
fi