diff options
Diffstat (limited to 'src/connections/tuntap')
-rw-r--r-- | src/connections/tuntap | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/connections/tuntap b/src/connections/tuntap index 27641e4..84b3bce 100644 --- a/src/connections/tuntap +++ b/src/connections/tuntap @@ -4,7 +4,7 @@ tuntap_up() { load_profile "$1" - if [ -e /sys/class/net/$INTERFACE ]; then + if [[ -e /sys/class/net/$INTERFACE ]]; then report_fail "Interface $INTERFACE already exists." exit 1 else @@ -26,7 +26,7 @@ tuntap_down() { } tuntap_status() { - if [ -e /sys/class/net/$INTERFACE ]; then + if [[ -e "/sys/class/net/$INTERFACE" ]]; then return 0 else return 1 |