[1.16.2/mdev] "Can't open /proc/sys/kernel/hotplug"

Harald Becker ralda at gmx.de
Mon May 30 10:32:23 UTC 2011


 On 30.05.2011 12:17, walter harms wrote:
> Perhaps we can put out a warning ....
>   start) echo "Starting mdev...";
>
> 	if [ -w /proc/sys/kernel/hotplug ]
> 	then
>           echo /sbin/mdev > /proc/sys/kernel/hotplug;
> 	else
> 	  printf "no writeable /proc/sys/kernel/hotplug found \n"
> 	fi
>           /sbin/mdev -s;
>           ;;

That looks like being a comfort solution ... ;-)

Why "printf" and not "echo"? Any difference or just personal preference?
I think echo in shell scripts is more portable than printf.

--
Harald


More information about the busybox mailing list