Make sure the previous move of cd commands cannot result in unexpected regressions

cleanup-cruft
Sebastian Pipping 13 years ago
parent 69009cb747
commit a7fbf76f7b

@ -283,10 +283,8 @@ setup_hotplug
# Start mdev # Start mdev
if [ "${KV_2_6_OR_GREATER}" ] if [ "${KV_2_6_OR_GREATER}" ]
then then
cd /sys
good_msg 'Activating mdev' good_msg 'Activating mdev'
mdev -s || bad_msg "Failed to receive dynamic updates from mdev" ( cd /sys && mdev -s ) || bad_msg "Failed to receive dynamic updates from mdev"
cd /
fi fi
# Load modules listed in MY_HWOPTS if /lib/modules exists for the running kernel # Load modules listed in MY_HWOPTS if /lib/modules exists for the running kernel
@ -316,6 +314,8 @@ sdelay
# Setup slow USB bits # Setup slow USB bits
setup_slowusb setup_slowusb
cd /
# if doslowusb is passed, pause other 10 seconds here, after mdev load # if doslowusb is passed, pause other 10 seconds here, after mdev load
[ "${DO_slowusb}" ] && sleep 10 [ "${DO_slowusb}" ] && sleep 10

Loading…
Cancel
Save