Renamed options from short numbered format (i.e. '-1', '-2') to long descriptive format (i.e. '--mmdebstrap', '--sources')
This commit is contained in:
@@ -9,7 +9,7 @@ source \
|
||||
"${BASEDIR}/system.conf"
|
||||
|
||||
|
||||
if [[ "${1}" == '-1' ]]; then
|
||||
if [[ "${1}" == '--mmdebstrap' ]]; then
|
||||
packages=(\
|
||||
console-setup \
|
||||
cryptsetup \
|
||||
@@ -48,7 +48,7 @@ zstd\
|
||||
${include} \
|
||||
"${VERSION_CODENAME}" \
|
||||
/mnt
|
||||
elif [[ "${1}" == '-2' ]]; then
|
||||
elif [[ "${1}" == '--network-interfaces' ]]; then
|
||||
NETWORK_INTERFACE=($(ip -br addr show | sed 's| .*$||g' | grep -v '^lo' | grep -v 'tailscale' | grep -v '^wg'))
|
||||
shopt -s extglob
|
||||
|
||||
@@ -58,7 +58,7 @@ allow-hotplug ${NETWORK_INTERFACE[$i]}
|
||||
iface ${NETWORK_INTERFACE[$i]} inet dhcp
|
||||
EOF
|
||||
done
|
||||
elif [[ "${1}" == '-3' ]]; then
|
||||
elif [[ "${1}" == '--sources' ]]; then
|
||||
cat << EOF | tee /mnt/etc/apt/sources.list.d/${VERSION_CODENAME}.sources &> /dev/null
|
||||
# ${VERSION_CODENAME^}
|
||||
Enabled: yes
|
||||
|
||||
Reference in New Issue
Block a user