forked from webmin/webmin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfsck_form.cgi
More file actions
executable file
·30 lines (22 loc) · 924 Bytes
/
fsck_form.cgi
File metadata and controls
executable file
·30 lines (22 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/local/bin/perl
# fsck_form.cgi
# Display a form asking for fsck options
require './format-lib.pl';
$access{'view'} && &error($text{'ecannot'});
&ReadParse();
&can_edit_disk($in{'dev'}) || &error($text{'fsck_ecannot'});
&ui_print_header(undef, $text{'fsck_title'}, "");
$fs = &filesystem_type($in{'dev'});
print "<form action=fsck.cgi>\n";
print "<input type=hidden name=dev value=\"$in{dev}\">\n";
print &text('fsck_desc', &fstype_name($fs), "<tt>$in{'dev'}</tt>"),"<p>\n";
print "<input type=radio name=mode value=\"-m\">\n";
print "$text{'fsck_mode0'}<br>\n";
print "<input type=radio name=mode value=\"-n\">\n";
print "$text{'fsck_mode1'}<br>\n";
print "<input type=radio name=mode value=\"-y\" checked>\n";
print "$text{'fsck_mode2'}<br><p>\n";
print "<div align=center><input type=submit ",
"value=\"$text{'fsck_repair'}\"></div>\n";
print "</form>\n";
&ui_print_footer("", $text{'index_return'});