]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Add status command to mtu hook.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 17 May 2009 07:41:10 +0000 (09:41 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 17 May 2009 07:41:10 +0000 (09:41 +0200)
src/initscripts/networking/hooks/mtu

index 93280fe6de396c49204dc805fd0fe6f85e254e3e..99b1c9d92665e89154cccb0c826448dc5f9101b9 100644 (file)
@@ -37,6 +37,13 @@ function usage() {
 zone=$2
 
 case "${1}" in
+       status)
+               check_config
+               mtu=$(cat /sys/class/net/${zone}/mtu 2>/dev/null)
+               [ "$MTU" = "$mtu" ]
+               exit $?
+               ;;
+
        pre-up)
                ;;