Display aliasses menu only if RED_TYPE=STATIC
authorArne Fitzenreiter <arne_f@ipfire.org>
Sat, 18 Jul 2009 10:38:43 +0000 (12:38 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sat, 18 Jul 2009 10:38:43 +0000 (12:38 +0200)
config/menu/30-network.menu

index b34e9d1184daec66ba8fdb7276f6c378b03517f0..abc6bc6afb5973da8fcfc92e82079b74fdd896ae 100644 (file)
@@ -13,7 +13,7 @@
                                'title' => $Lang::tr{'url filter'},
                                'enabled' => 1,
                                };
-               $subnetwork->{'22.updxlrator'} = {'caption' => $Lang::tr{'update accelerator'},
+    $subnetwork->{'22.updxlrator'} = {'caption' => $Lang::tr{'update accelerator'},
                                'uri' => '/cgi-bin/updatexlrator.cgi',
                                'title' => $Lang::tr{'update accelerator'},
                                'enabled' => 1,
@@ -45,7 +45,7 @@
                                  'caption' => $Lang::tr{'aliases'},
                                  'uri' => '/cgi-bin/aliases.cgi',
                                  'title' => "$Lang::tr{'aliases'}",
-                                 'enabled' => 1,
+                                 'enabled' => `grep "RED_TYPE=STATIC" /var/ipfire/ethernet/settings`,
                                  };
        $subnetwork->{'80.dnsmenu'} = {
                                  'caption' => $Lang::tr{'dns menu'},