mirror of
https://bitbucket.org/gwenhael/pine64-slackware.git
synced 2024-12-26 09:58:23 +01:00
display login information at the end
This commit is contained in:
parent
8fb7ddb92a
commit
a9ae7c4cb4
1 changed files with 3 additions and 1 deletions
|
@ -11,7 +11,7 @@ SD_MOUNT_POINT=$2
|
||||||
[ "x$1" == "x" ] && display_usage && exit
|
[ "x$1" == "x" ] && display_usage && exit
|
||||||
[ "x$2" == "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
|
if $(df | grep /$ | grep -q "^$SD_DEV"); then
|
||||||
echo "Target and current system device are the same. Can't do that!"
|
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/bootenv
|
||||||
umount $SD_MOUNT_POINT
|
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
|
sync
|
||||||
|
|
Loading…
Reference in a new issue