Updated variable names from all caps to camel case
This commit is contained in:
12
debian.sh
12
debian.sh
@@ -6,7 +6,7 @@ baseDir="$(realpath "$(dirname "${0}")")"
|
|||||||
source \
|
source \
|
||||||
/etc/os-release
|
/etc/os-release
|
||||||
source \
|
source \
|
||||||
"${BASEDIR}/system.conf"
|
"${baseDir}/system.conf"
|
||||||
|
|
||||||
|
|
||||||
if [[ "${1}" == '--mmdebstrap' ]]; then
|
if [[ "${1}" == '--mmdebstrap' ]]; then
|
||||||
@@ -49,13 +49,13 @@ zstd\
|
|||||||
"${VERSION_CODENAME}" \
|
"${VERSION_CODENAME}" \
|
||||||
/mnt
|
/mnt
|
||||||
elif [[ "${1}" == '--network-interfaces' ]]; then
|
elif [[ "${1}" == '--network-interfaces' ]]; then
|
||||||
NETWORK_INTERFACE=($(ip -br addr show | sed 's| .*$||g' | grep -v '^lo' | grep -v 'tailscale' | grep -v '^wg'))
|
networkInterface=($(ip -br addr show | sed 's| .*$||g' | grep -v '^lo' | grep -v 'tailscale' | grep -v '^wg'))
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
|
|
||||||
for ((i = 0; i < ${#NETWORK_INTERFACE[@]}; i++)); do
|
for ((i = 0; i < ${#networkInterface[@]}; i++)); do
|
||||||
cat << EOF | tee /mnt/etc/network/interfaces.d/${NETWORK_INTERFACE[$i]} &> /dev/null
|
cat << EOF | tee /mnt/etc/network/interfaces.d/${networkInterface[$i]} &> /dev/null
|
||||||
allow-hotplug ${NETWORK_INTERFACE[$i]}
|
allow-hotplug ${networkInterface[$i]}
|
||||||
iface ${NETWORK_INTERFACE[$i]} inet dhcp
|
iface ${networkInterface[$i]} inet dhcp
|
||||||
EOF
|
EOF
|
||||||
done
|
done
|
||||||
elif [[ "${1}" == '--sources' ]]; then
|
elif [[ "${1}" == '--sources' ]]; then
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ baseDir="$(realpath "$(dirname "${0}")")"
|
|||||||
source \
|
source \
|
||||||
/etc/os-release
|
/etc/os-release
|
||||||
source \
|
source \
|
||||||
"${BASEDIR}/system.conf"
|
"${baseDir}/system.conf"
|
||||||
|
|
||||||
|
|
||||||
if [[ "${1}" == '--mmdebstrap' ]]; then
|
if [[ "${1}" == '--mmdebstrap' ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user