2018-04-30 16:57:01 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#remaster lib
|
2018-05-06 17:26:21 +00:00
|
|
|
[ -d "$LIBDIR"] || export LIBDIR="/usr/lib/remaster/"
|
|
|
|
[ -d "$LIBDIR"] || { echo "LIBDIR not exist"; exit 1; }
|
2018-04-30 16:57:01 +00:00
|
|
|
|
|
|
|
#chroot_is_mounted [chroot_dir]
|
|
|
|
#(Boolean)-> true | false
|
|
|
|
function chroot_is_mounted() {
|
|
|
|
#$1 = chroot directory
|
|
|
|
|
|
|
|
if [ "`mount | grep "$1"`" != "" ] ; then
|
|
|
|
#ther is smething mounted
|
|
|
|
echo "true"
|
|
|
|
else
|
|
|
|
#nothing mounted
|
|
|
|
echo "false"
|
|
|
|
fi
|
|
|
|
}
|