summaryrefslogtreecommitdiffstats
path: root/draksnapshot-applet
diff options
context:
space:
mode:
Diffstat (limited to 'draksnapshot-applet')
-rwxr-xr-xdraksnapshot-applet17
1 files changed, 0 insertions, 17 deletions
diff --git a/draksnapshot-applet b/draksnapshot-applet
index a8b8082..32100f0 100755
--- a/draksnapshot-applet
+++ b/draksnapshot-applet
@@ -222,23 +222,6 @@ sub firstCheck() {
my @discs = grep { is_proper_device($_, 1) } map { $hal->get_object($_, "$hal_dn.Device") } @{$manager->GetAllDevices};
- # find root fs:
- my $root;
- foreach (cat_("/etc/mtab"), cat_("/proc/mounts")) {
- my ($dev, $mntpoint) = split;
- if ($mntpoint eq '/') {
- $root = $dev;
- last;
- }
- }
-
- # we just want the basename of the root disc:
- $root =~ s!.*/!!;
- $root =~ s!\d*$!!;
-
- # exclude root fs from found USB discs:
- @discs = grep { $_ ne $root } map { $_->{device} } @discs;
-
go2State(@discs ? 'disk_found' : 'okay');
}