From 1f58cd3918b28658299c8d6f16d4727751b48232 Mon Sep 17 00:00:00 2001 From: toby Date: Tue, 9 Oct 2018 16:23:52 +0000 Subject: [PATCH] cleaning up leading space vs tab bs --- debian/wit-network-config.postinst | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/debian/wit-network-config.postinst b/debian/wit-network-config.postinst index 078c322..3977955 100755 --- a/debian/wit-network-config.postinst +++ b/debian/wit-network-config.postinst @@ -24,16 +24,16 @@ case "$1" in ### START gather all the info from the box and generate the variabels - export LOOPBACKv4=$(dig a +short ${HOSTNAME}) - export LOOPBACKv6=$(dig aaaa +short ${HOSTNAME}) - NODEASN=$(dig txt +short asn.${HOSTNAME}) - NODEASN="${NODEASN%\"}" - NODEASN="${NODEASN#\"}" - export NODEASN + export LOOPBACKv4=$(dig a +short ${HOSTNAME}) + export LOOPBACKv6=$(dig aaaa +short ${HOSTNAME}) + NODEASN=$(dig txt +short asn.${HOSTNAME}) + NODEASN="${NODEASN%\"}" + NODEASN="${NODEASN#\"}" + export NODEASN - if [ -z $LOOPBACKv4 ] || [ -z $LOOPBACKv6 ] || [ -z $NODEASN ]; then - echo "unable to find my LOOPBACK IP and/or ASN: $LOOPBACKv4/$LOOPBACKv6/$NODEASN" - exit 2 + if [ -z $LOOPBACKv4 ] || [ -z $LOOPBACKv6 ] || [ -z $NODEASN ]; then + echo "unable to find my LOOPBACK IP and/or ASN: $LOOPBACKv4/$LOOPBACKv6/$NODEASN" + exit 2 fi declare -A MACS @@ -119,7 +119,7 @@ case "$1" in # wite grub rules for serial terminal - sed -i -e '/GRUB_CMDLINE_LINUX_DEFAULT=/d' -e '/GRUB_CMDLINE_LINUX=/d' -e '/GRUB_SERIAL_COMMAND=/d' -e '/GRUB_TERMINAL=/d' /etc/default/grub + sed -i -e '/GRUB_CMDLINE_LINUX_DEFAULT=/d' -e '/GRUB_CMDLINE_LINUX=/d' -e '/GRUB_SERIAL_COMMAND=/d' -e '/GRUB_TERMINAL=/d' /etc/default/grub cat <<-EOF >>/etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT="" GRUB_CMDLINE_LINUX="console=tty0 console=ttyS1,115200n8"