summaryrefslogtreecommitdiffstats
path: root/draksnapshot-applet
diff options
context:
space:
mode:
authortv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-09-29 16:23:13 +0000
committertv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-09-29 16:23:13 +0000
commitb924be1403c5be6e452e41ec817a9b844262e31b (patch)
tree9ff03bf8fd7535c40aefc3d3cf8aeb7829c3a32a /draksnapshot-applet
parent850e80dfef54188b665795a19db5544ed3cfbbf7 (diff)
downloaddraksnapshot-b924be1403c5be6e452e41ec817a9b844262e31b.tar
draksnapshot-b924be1403c5be6e452e41ec817a9b844262e31b.tar.gz
draksnapshot-b924be1403c5be6e452e41ec817a9b844262e31b.tar.bz2
draksnapshot-b924be1403c5be6e452e41ec817a9b844262e31b.tar.xz
draksnapshot-b924be1403c5be6e452e41ec817a9b844262e31b.zip
(firstCheck) kill dead code (useless now that we use HAL)
git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@247026 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
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');
}