mirror of
https://bitbucket.org/gwenhael/pine64-slackware.git
synced 2024-12-26 09:58:23 +01:00
run as root!
This commit is contained in:
parent
c339ac835c
commit
8fb7ddb92a
1 changed files with 2 additions and 0 deletions
|
@ -11,6 +11,8 @@ SD_MOUNT_POINT=$2
|
|||
[ "x$1" == "x" ] && display_usage && exit
|
||||
[ "x$2" == "x" ] && display_usage && 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!"
|
||||
exit
|
||||
|
|
Loading…
Reference in a new issue