mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Don't show floppies if missing
This commit is contained in:
@@ -875,7 +875,8 @@ sub partition_select
|
||||
{
|
||||
local $rv = "<select name=$_[0]>\n";
|
||||
local ($found, $d, $p);
|
||||
if ($_[2] == 0 || $_[2] == 2) {
|
||||
if (($_[2] == 0 || $_[2] == 2) &&
|
||||
(-r "/dev/fd0" || $_[1] =~ /^\/dev\/fd[01]$/)) {
|
||||
$rv .= sprintf "<option %s value=/dev/fd0>%s\n",
|
||||
$_[1] eq "/dev/fd0" ? "selected" : "",
|
||||
&text('select_fd', 0) if (!$_[4] || "/dev/fd0" =~ /$_[4]/);
|
||||
|
||||
@@ -236,12 +236,12 @@ log_tunefs=Tuned $1 filesystem on $2
|
||||
log_fsck=Repaired $1 filesystem on $2
|
||||
log_hdparm=Modified IDE parameters for $1
|
||||
|
||||
fs_ext2=Linux Native
|
||||
fs_ext2=Old Linux Native
|
||||
fs_minix=Minix
|
||||
fs_msdos=MS-DOS
|
||||
fs_vfat=Windows
|
||||
fs_reiserfs=ReiserFS
|
||||
fs_ext3=New Linux Native
|
||||
fs_ext3=Linux Native
|
||||
fs_xfs=SGI
|
||||
fs_jfs=IBM Journalling
|
||||
|
||||
|
||||
Reference in New Issue
Block a user