-echo ""
-echo $(date "+%H:%M:%S") "pl_sysinit: configuring kernel parameters"
-/sbin/sysctl -e -p /etc/sysctl.conf
-
-# startup rsyslog if available (we're *NOT* running the standard rc)
-syslog=/etc/rc.d/init.d/rsyslog
-[ -x $syslog ] && $syslog start
-
-echo ""
-echo $(date "+%H:%M:%S") "pl_sysinit: bringing network online"
-/etc/init.d/pl_netinit
-
-# just in case, sometimes we're seeing weird stuff already at this point
-pl_network_sanity_checks
-
-echo ""
-echo $(date "+%H:%M:%S") "pl_sysinit: attempting to sync clock"
-/usr/sbin/ntpdate -b -t 10 -u pool.ntp.org
-
-# Handle /dev/rtc name change for newer kernels
-# otherwise hwclock fails
-baseMaj=`uname -r | cut -d "." -f1`
-baseMin=`uname -r | cut -d "." -f2`
-vers=`uname -r | cut -d "." -f3 | cut -d "-" -f1`
-if [ $baseMaj -eq 2 ];then
- if [ $baseMin -eq 6 ]; then
- if [ $vers -ge 32 ];then
- if [ "$(readlink /dev/rtc)" != "/dev/rtc0" ]; then
- rm -f /dev/rtc
- ln -s /dev/rtc0 /dev/rtc
+verbose-message "pl_sysinit: bringing network online"
+verbose-run /etc/init.d/pl_netinit
+
+function sync-clock() {
+ /usr/sbin/ntpdate -b -t 10 -u pool.ntp.org
+
+ # Handle /dev/rtc name change for newer kernels
+ # otherwise hwclock fails
+ baseMaj=`uname -r | cut -d "." -f1`
+ baseMin=`uname -r | cut -d "." -f2`
+ vers=`uname -r | cut -d "." -f3 | cut -d "-" -f1`
+ if [ $baseMaj -eq 2 ];then
+ if [ $baseMin -eq 6 ]; then
+ if [ $vers -ge 32 ];then
+ if [ "$(readlink /dev/rtc)" != "/dev/rtc0" ]; then
+ rm -f /dev/rtc
+ ln -s /dev/rtc0 /dev/rtc
+ fi