]> git.ipfire.org Git - network.git/commitdiff
Fix some syntax errors.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 28 Jul 2012 09:05:05 +0000 (09:05 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 28 Jul 2012 09:05:05 +0000 (09:05 +0000)
functions.cli

index d98b51305f1f33c93af4e450a5f2125ce77b88ca..11ec88ce7fdde92600f4a19536c8aabde5a3f8a4 100644 (file)
@@ -91,13 +91,13 @@ function cli_device_headline() {
                        ;;
        esac
        cli_print_fmt1 1 "Status" "${status}"
-       if enabled ${long}; then
+       if enabled long; then
                cli_print_fmt1 1 "Address" "$(device_get_address ${device})"
        fi
        if device_is_up ${device}; then
                cli_print_fmt1 1 "MTU" "$(device_get_mtu ${device})"
        fi
-       if enabled ${long}; then
+       if enabled long; then
                device_is_promisc ${device} &>/dev/null
                cli_print_fmt1 1 "Promisc" "$(cli_print_bool $?)"
        fi
@@ -107,7 +107,7 @@ function cli_device_headline() {
        # Print the device stats.
        device_is_up ${device} && cli_device_stats 2 ${device}
 
-       if enabled ${long}; then
+       if enabled long; then
                # Virtual devices.
                device_is_virtual ${device} && cli_device_virtual ${device}