From a9ae7c4cb4978c3a8f94ff9286a566a4aad3aa8c Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Wed, 13 Jul 2016 07:30:11 +0200 Subject: [PATCH] display login information at the end --- make_usd_card.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/make_usd_card.sh b/make_usd_card.sh index 8252d21..f94f320 100755 --- a/make_usd_card.sh +++ b/make_usd_card.sh @@ -11,7 +11,7 @@ SD_MOUNT_POINT=$2 [ "x$1" == "x" ] && display_usage && exit [ "x$2" == "x" ] && display_usage && exit -[ ! "x$UID" == "x0"] && echo "run as root" && exit +[[ "x$UID" != "x0" ]] && echo "run as root" && exit if $(df | grep /$ | grep -q "^$SD_DEV"); then echo "Target and current system device are the same. Can't do that!" @@ -69,4 +69,6 @@ EOF umount $SD_MOUNT_POINT/bootenv umount $SD_MOUNT_POINT +curl -s ftp://ftp.arm.slackware.com/slackwarearm/slackwarearm-devtools/minirootfs/roots/slack-${SLACKWARE_VERSION}-miniroot_details.txt | grep -C1 "User" + sync