commit:     1b73a2ea3f152c6b0df04dc83b32a3cd4972de2e
Author:     Rick Farina (Zero_Chaos) <zerochaos <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  7 18:48:15 2017 +0000
Commit:     Richard Farina <zerochaos <AT> gentoo <DOT> org>
CommitDate: Mon Aug  7 18:48:15 2017 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=1b73a2ea

/proc/sys/kernel/hotplug is pretty deprecated, only try to write to it if it 
exists

 defaults/linuxrc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/defaults/linuxrc b/defaults/linuxrc
index 9ab44c8..6bb1b98 100644
--- a/defaults/linuxrc
+++ b/defaults/linuxrc
@@ -385,7 +385,10 @@ good_msg 'Activating mdev'
 touch /dev/mdev.seq
 
 # Setup hotplugging for firmware loading
-echo /sbin/mdev > /proc/sys/kernel/hotplug
+if [ -f "/proc/sys/kernel/hotplug" ];
+then
+  echo /sbin/mdev > /proc/sys/kernel/hotplug
+fi
 
 # Load modules listed in MY_HWOPTS if /lib/modules exists for the running 
kernel
 if [ -z "${DO_modules}" ]

Reply via email to