flasher: print status before running finalize
authorGrazvydas Ignotas <notasas@gmail.com>
Sat, 29 May 2010 13:02:41 +0000 (16:02 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sat, 29 May 2010 13:02:41 +0000 (16:02 +0300)
flasher/rootfs/etc/init.d/rc
flasher/rootfs/etc/updater.sh

index f4e5ebf..efeddcf 100755 (executable)
@@ -1,5 +1,6 @@
 #!/bin/sh
 
+. /etc/profile
 . /etc/updater_funcs.sh
 
 chvt $LOG_TTY
index 26dcd36..cc4ad6f 100755 (executable)
@@ -145,8 +145,16 @@ else
        log "root filesystem is missing, skipped."
 fi
 
+log "======================="
+log "results:"
+log "u-boot:     $status_uboot"
+log "u-boot-env: $status_uboot_env"
+log "kernel:     $status_uimage"
+log "rootfs:     $status_rootfs $rootfs_file"
+
 if [ -n "$finalize_mpoint" ]
 then
+       log ""
        log "running finalize script.."
        cd $finalize_mpoint
        if ! ./finalize.sh
@@ -164,11 +172,4 @@ then
        umount $rootfs_mpoint 2> /dev/null || true
 fi
 
-log "======================="
-log "results:"
-log "u-boot:     $status_uboot"
-log "u-boot-env: $status_uboot_env"
-log "kernel:     $status_uimage"
-log "rootfs:     $status_rootfs $rootfs_file"
-
 exit 0