13 lines
235 B
Bash
13 lines
235 B
Bash
#!/bin/bash
|
|
#remaster lib
|
|
[ -d "<LIBDIR>" ] || { echo "LIBDIR not exist"; exit 1; }
|
|
|
|
#check_user
|
|
function check_user() {
|
|
#check root
|
|
[ "`whoami`" == "root" ] || {
|
|
echo "### ERROR ### Remaster need ROOT permision!"
|
|
return 10
|
|
}
|
|
}
|