blob: 43aa2512d60bd0c6b646e286e79d39d26d8b04cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# scripts/00-init.sh
Init ()
{
# Check if user is root
if [ "`id -u`" -ne "0" ]
then
echo "E: ${PROGRAM} requires superuser privilege."
exit 1
fi
# Check if build directory already exists
if [ -d "${LIVE_ROOT}" ] && [ ! -d "${LIVE_ROOTFS}" ]
then
echo "E: found an (unfinished) system, remove it and re-run ${PROGRAM}."
exit 1
fi
}
|