]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
network: Made config command for mtu.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 24 May 2009 15:34:36 +0000 (17:34 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 24 May 2009 15:34:36 +0000 (17:34 +0200)
src/network/lib/hooks/mtu

index 2cbd039abd73612f68a197f83e74ebcd07c47f7b..2fd36fb04f6538537be7abcc6858c8ec2c7634dc 100644 (file)
@@ -66,6 +66,13 @@ case "${1}" in
                ;;
 
        config)
+               MTU=$3
+               check_config
+               cat << EOF >> ${CONFIG_ZONES}/${zone}/mtu
+HOOK=mtu
+MTU=$MTU
+EOF
+               exit $?
                ;;
 
        *)