master
kvaps 2018-10-18 10:40:39 +02:00
parent 31476a174f
commit 080a9faee0
1 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ log() {
} }
debug() { debug() {
if [ "$DEBUG" == 1 ]; then if [ "$DEBUG" = 1 ]; then
>&2 echo -en "[$(date '+%Y-%m-%d %H:%M:%S')] DEBUG:\t" >&2 echo -en "[$(date '+%Y-%m-%d %H:%M:%S')] DEBUG:\t"
>&2 echo "$1" >&2 echo "$1"
fi fi
@ -98,7 +98,7 @@ ip link set "$BRIDGE" up
# Configure vlan # Configure vlan
# ------------------------------------------------------------------------------------ # ------------------------------------------------------------------------------------
if ([ ! -z "$VLAN" ] || [ ! -z "$IFACE" ]) && [ "$CHECK_SLAVES" == 1 ]; then if ([ ! -z "$VLAN" ] || [ ! -z "$IFACE" ]) && [ "$CHECK_SLAVES" = 1 ]; then
log "Starting VLAN configuration" log "Starting VLAN configuration"
[ -z "$IFACE" ] && error "IFACE variable is not defined" [ -z "$IFACE" ] && error "IFACE variable is not defined"
@ -120,7 +120,7 @@ fi
# Configure slaves # Configure slaves
# ------------------------------------------------------------------------------------ # ------------------------------------------------------------------------------------
if ([ ! -z "$VLAN" ] || [ ! -z "$IFACE" ]) && [ "$CHECK_SLAVES" == 1 ]; then if ([ ! -z "$VLAN" ] || [ ! -z "$IFACE" ]) && [ "$CHECK_SLAVES" = 1 ]; then
log "Starting configuring slave interfaces" log "Starting configuring slave interfaces"