diff --git a/exports/module.info b/exports/module.info index 8b2e39a49..b1040060e 100644 --- a/exports/module.info +++ b/exports/module.info @@ -24,3 +24,4 @@ depends=mount 1.276 version=1.276 desc_ru_RU= NFS desc_ca=Exportacions NFS +novserver=1 diff --git a/fdisk/module.info b/fdisk/module.info index d0c4e3fcf..bdd1e24c2 100644 --- a/fdisk/module.info +++ b/fdisk/module.info @@ -23,3 +23,4 @@ desc_zh_TW.UTF-8=本機磁碟分割區 desc_zh_CN.UTF-8=本地磁盘分区 desc_ja_JP.UTF-8=ローカル ディスクのパーティション desc_ko_KR.UTF-8=지역 디스크 파티션 +novserver=1 diff --git a/mount/module.info b/mount/module.info index dfc634e18..d0c0a78f3 100644 --- a/mount/module.info +++ b/mount/module.info @@ -27,3 +27,4 @@ desc_zh_TW.UTF-8=磁碟與網路檔案系統 desc_zh_CN.UTF-8=磁盘和网络文件系统 desc_ja_JP.UTF-8=ディスクおよびネットワーク・ファイルシステム desc_ko_KR.UTF-8=디스크 및 네트워크 파일시스템 +novserver=1 diff --git a/net/index.cgi b/net/index.cgi index 95cee5bbe..0cc77af0a 100755 --- a/net/index.cgi +++ b/net/index.cgi @@ -6,10 +6,11 @@ require './net-lib.pl'; &ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1, 0, &help_search_link("ifconfig hosts resolve.conf nsswitch.conf", "man")); +$zone = &running_in_zone() || &running_in_vserver(); foreach $i ('ifcs', 'routes', 'dns', 'hosts', ($config{'ipnodes_file'} ? ('ipnodes') : ( ))) { next if (!$access{$i}); - next if ($i eq "ifcs" && &running_in_zone()); + next if ($i eq "ifcs" && $zone); push(@links, "list_${i}.cgi"); push(@titles, $text{"${i}_title"}); @@ -17,7 +18,7 @@ foreach $i ('ifcs', 'routes', 'dns', 'hosts', } &icons_table(\@links, \@titles, \@icons, @icons > 4 ? scalar(@icons) : 4); -if (defined(&apply_network) && $access{'apply'} && !&running_in_zone()) { +if (defined(&apply_network) && $access{'apply'} && !$zone) { # Allow the user to apply the network config print "