Fixes
This commit is contained in:
parent
4cb91f09f0
commit
92d4293efe
@ -17,7 +17,8 @@ checkperm:
|
||||
chown ${HTTPUSER} ${HTTPROOT}/shadowarch
|
||||
|
||||
test:
|
||||
./shadowarch -h
|
||||
bash -n shadowarch
|
||||
bash ./shadowarch -h || echo Success.
|
||||
|
||||
reverse: ${HTTPROOT}/shadowarch /root/bin/shadowarch-tar-gen
|
||||
cp ${HTTPROOT}/shadowarch .
|
||||
|
@ -9,15 +9,15 @@ function header () {
|
||||
}
|
||||
function help() {
|
||||
echo Usage: ${0} '[OPTIONS]'
|
||||
echo '\-d DISK -- Use the disk.'
|
||||
echo '\-e -- Encrypt the root partition'
|
||||
echo '\-g -- GUI packages and setup'
|
||||
echo '\-h -- This helptext'
|
||||
echo '\-k -- Kali Linux-like package additions'
|
||||
echo '\-p -- Productivity package additions'
|
||||
echo '\-s -- Create a layout for an AniNIX::Spartacus'
|
||||
echo '\-m -- Skip disk operations and assume storage is mounted on /mnt'
|
||||
echo '\-z -- Try to add all the packages on AniNIX::Core'
|
||||
echo '-d DISK -- Use the disk.'
|
||||
echo '-e -- Encrypt the root partition'
|
||||
echo '-g -- GUI packages and setup'
|
||||
echo '-h -- This helptext'
|
||||
echo '-k -- Kali Linux-like package additions'
|
||||
echo '-p -- Productivity package additions'
|
||||
echo '-s -- Create a layout for an AniNIX::Spartacus'
|
||||
echo '-m -- Skip disk operations and assume storage is mounted on /mnt'
|
||||
echo '-z -- Try to add all the packages on AniNIX::Core'
|
||||
exit 1;
|
||||
}
|
||||
|
||||
@ -33,15 +33,16 @@ bootpart=1;
|
||||
rootpart=2;
|
||||
datapart=99;
|
||||
# TODO Add LVM as an argument
|
||||
while getopts "ed:gps" OPTION
|
||||
while getopts "d:eghkmpsz" OPTION
|
||||
do
|
||||
case $OPTION in
|
||||
d) disk=${OPTARG} ;;
|
||||
e) encrypt=1 ;;
|
||||
g) gui=1 ;;
|
||||
h) help ;;
|
||||
k) kali=1 ;;
|
||||
p) productivity=1; gui=1 ;;
|
||||
m) nodiskbuild=1 ;;
|
||||
p) productivity=1; gui=1 ;;
|
||||
s) spartacus=1 ;;
|
||||
z) kitchensink=1 ;;
|
||||
*) help
|
||||
@ -114,6 +115,7 @@ fi
|
||||
mkdir /mnt/boot
|
||||
mount "$disk""$bootpart" /mnt/boot
|
||||
if [ "$?" -ne 0 ]; then header ERROR: Cannot continue; exit 1; fi
|
||||
fi
|
||||
|
||||
|
||||
# Install ArchLinux with basic clients for the AniNIX Services.
|
||||
|
Loading…
Reference in New Issue
Block a user