]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - config/menu/30-network.menu
Display dns-settings only if RED_TYPE=DHCP
[people/pmueller/ipfire-2.x.git] / config / menu / 30-network.menu
old mode 100755 (executable)
new mode 100644 (file)
index 2780319..b34e9d1
                                  'title' => "$Lang::tr{'aliases'}",
                                  'enabled' => 1,
                                  };
-    $subnetwork->{'80.wakeonlan'} = {
+       $subnetwork->{'80.dnsmenu'} = {
+                                 'caption' => $Lang::tr{'dns menu'},
+                                 'uri' => '/cgi-bin/dns.cgi',
+                                 'title' => "$Lang::tr{'dns menu'}",
+                                 'enabled' => `grep "RED_TYPE=DHCP" /var/ipfire/ethernet/settings`,
+                                 };
+       $subnetwork->{'90.macadressmenu'} = {
+                                 'caption' => $Lang::tr{'mac address menu'},
+                                 'uri' => '/cgi-bin/mac.cgi',
+                                 'title' => "$Lang::tr{'mac address menu'}",
+                                 'enabled' => 1,
+                                 };
+        $subnetwork->{'99.wakeonlan'} = {
                                  'caption' => $Lang::tr{'WakeOnLan'},
                                  'uri' => '/cgi-bin/wakeonlan.cgi',
                                  'title' => "$Lang::tr{'WakeOnLan'}",
                                  'enabled' => 1,
                                  };
-       $subnetwork->{'90.macadress'} = {
-                                 'caption' => $Lang::tr{'mac address'},
-                                 'uri' => '/cgi-bin/mac.cgi',
-                                 'title' => "$Lang::tr{'mac address'}",
-                                 'enabled' => 1,
-                                 };