summaryrefslogtreecommitdiffstats
ModeNameSize
-rw-r--r--.cvsignore110logstatsplain
-rw-r--r--Makefile3913logstatsplain
d---------docs461logstatsplain
-rw-r--r--live_update2293logstatsplain
-rwxr-xr-xmake_boot_img9611logstatsplain
-rwxr-xr-xmake_ks_from_floppy306logstatsplain
d---------mdk-stage11823logstatsplain
d---------perl-install3169logstatsplain
d---------rescue477logstatsplain
d---------tools879logstatsplain
-rwxr-xr-xupdate_kernel3310logstatsplain
\n"; if ($>) { $ENV{PATH} = "/sbin:/usr/sbin:$ENV{PATH}"; } my $in = 'interactive'->vnew('su'); if ($type eq 'fileshare') { require any; any::fileshare_config($in); $in->exit(0); } my $all_hds = fsedit::get_hds({}, $in); $SIG{__DIE__} = sub { my $m = chomp_($_[0]); log::l("ERROR: $m") }; fs::get_raw_hds('', $all_hds); fs::merge_info_from_fstab([ fsedit::get_really_all_fstab($all_hds) ]); fs::merge_info_from_mtab([ fsedit::get_really_all_fstab($all_hds) ]); $all_hds->{current_fstab} = fs::fstab_to_string($all_hds); if ($type eq 'hd') { diskdrake::interactive::main($in, $all_hds); } elsif ($type eq 'removable') { require diskdrake::removable; $para =~ s|^/dev/||; my ($raw_hd) = $para ? first(grep { $para eq $_->{device} } @{$all_hds->{raw_hds}}) || die "unknown removable $para\n" : $in->ask_from_listf('', '', \&diskdrake::interactive::format_raw_hd_info, $all_hds->{raw_hds}) or $in->exit(0); diskdrake::removable::main($in, $all_hds, $raw_hd); } elsif ($type eq 'dav') { ($::isEmbedded, my $isEmbedded) = (0, $::isEmbedded); require diskdrake::dav; diskdrake::dav::main($in, $all_hds); $::isEmbedded = $isEmbedded; } else { $in->ask_warn('', "Sorry only a gtk frontend is available") if !$in->isa('interactive::gtk'); require diskdrake::smbnfs_gtk; diskdrake::smbnfs_gtk::main($in, $all_hds, $type); } $in->exit(0);