Skip to content
Browse files

Make sure the previous move of cd commands cannot result in unexpecte…

…d regressions
  • Loading branch information...
1 parent 69009cb commit a7fbf76f7baa05049b6147c308a0874912790f04 @hartwork hartwork committed Apr 12, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 defaults/linuxrc
View
6 defaults/linuxrc
@@ -283,10 +283,8 @@ setup_hotplug
# Start mdev
if [ "${KV_2_6_OR_GREATER}" ]
then
- cd /sys
good_msg 'Activating mdev'
- mdev -s || bad_msg "Failed to receive dynamic updates from mdev"
- cd /
+ ( cd /sys && mdev -s ) || bad_msg "Failed to receive dynamic updates from mdev"
fi
# Load modules listed in MY_HWOPTS if /lib/modules exists for the running kernel
@@ -316,6 +314,8 @@ sdelay
# Setup slow USB bits
setup_slowusb
+cd /
+
# if doslowusb is passed, pause other 10 seconds here, after mdev load
[ "${DO_slowusb}" ] && sleep 10

0 comments on commit a7fbf76

Please sign in to comment.
Something went wrong with that request. Please try again.