Display dns-settings only if RED_TYPE=DHCP
authorArne Fitzenreiter <arne_f@ipfire.org>
Sat, 18 Jul 2009 10:31:13 +0000 (12:31 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sat, 18 Jul 2009 10:31:13 +0000 (12:31 +0200)
config/menu/30-network.menu [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index a28adf6..b34e9d1
@@ -51,7 +51,7 @@
                                  'caption' => $Lang::tr{'dns menu'},
                                  'uri' => '/cgi-bin/dns.cgi',
                                  'title' => "$Lang::tr{'dns menu'}",
-                                 'enabled' => 1,
+                                 'enabled' => `grep "RED_TYPE=DHCP" /var/ipfire/ethernet/settings`,
                                  };
        $subnetwork->{'90.macadressmenu'} = {
                                  'caption' => $Lang::tr{'mac address menu'},