diff options
-rwxr-xr-x | rc.d/init.d/functions | 2 | ||||
-rwxr-xr-x | rc.d/rc.sysinit | 4 | ||||
-rw-r--r-- | src/initlog.c | 1 |
3 files changed, 3 insertions, 4 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index 45de373a..5f4e1d6a 100755 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -253,7 +253,7 @@ action() { echo "$initlogcmds" >&21 fi - if [ $rc ]; then + if [ $rc -eq 0 ]; then [ "$BOOTUP" = "verbose" ] && { if [ -n "$output" ]; then echo diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index e15682f2..933ff7d2 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -52,7 +52,7 @@ if [ -f /forcefsck ]; then fi if [ ! -f /fastboot ]; then - action "Checking root filesystem" fsck -T -a $fsckoptions / + action "Checking root filesystem" fsck -V -T -a $fsckoptions / rc=$? # A return of 2 or higher means there were serious problems. @@ -200,7 +200,7 @@ fi # Check filesystems if [ ! -f /fastboot ]; then - action "Checking filesystems" fsck -T -R -A -a $fsckoptions + action "Checking filesystems" fsck -V -T -R -A -a $fsckoptions rc=$? diff --git a/src/initlog.c b/src/initlog.c index 6bc6fe10..46fc0ee7 100644 --- a/src/initlog.c +++ b/src/initlog.c @@ -147,7 +147,6 @@ int logEvent(char *cmd, int eventtype,char *string) { int x=0,len; struct logInfo logentry; - if (cmd) { logentry.cmd = strdup(basename(cmd)); if ((logentry.cmd[0] =='K' || logentry.cmd[0] == 'S') && ( 30 <= logentry.cmd[1] <= 39 ) |