Use -q option with modprobe rather than sending to /dev/null.
This commit is contained in:
parent
804de005b8
commit
45d2bcdb9f
@ -74,7 +74,7 @@ start() {
|
|||||||
setupopts
|
setupopts
|
||||||
|
|
||||||
if [ ${fakeit} -ne 1 -a -e /proc/modules -a ! -e /dev/rtc ] ; then
|
if [ ${fakeit} -ne 1 -a -e /proc/modules -a ! -e /dev/rtc ] ; then
|
||||||
modprobe rtc 2>/dev/null || modprobe genrtc 2>/dev/null
|
modprobe -q rtc || modprobe -q genrtc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ebegin "Setting system clock using the hardware clock" "[${TBLURB}]"
|
ebegin "Setting system clock using the hardware clock" "[${TBLURB}]"
|
||||||
|
@ -50,8 +50,7 @@ start() {
|
|||||||
|
|
||||||
# Make sure we insert usbcore if its a module
|
# Make sure we insert usbcore if its a module
|
||||||
if [ -f /proc/modules -a ! -d /proc/bus/usb ] ; then
|
if [ -f /proc/modules -a ! -d /proc/bus/usb ] ; then
|
||||||
# >/dev/null to hide errors from non-USB users
|
modprobe -q usbcore
|
||||||
modprobe usbcore &> /dev/null
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -e /proc/filesystems ] ; then
|
if [ -e /proc/filesystems ] ; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user