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