fix: ==
parent
31476a174f
commit
080a9faee0
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue