summaryrefslogtreecommitdiffstats
path: root/move/tree/mdk_move_loop
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-11-17 12:55:39 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-11-17 12:55:39 +0000
commitc0fc9f49955f718e14c47bf901d56ae981f291a4 (patch)
tree778473a2c1c7e2715a142c1aafa3e86b4bb54abd /move/tree/mdk_move_loop
parentd151cf9f3076baffa485e60305a15c6f0bae8645 (diff)
downloaddrakx-c0fc9f49955f718e14c47bf901d56ae981f291a4.tar
drakx-c0fc9f49955f718e14c47bf901d56ae981f291a4.tar.gz
drakx-c0fc9f49955f718e14c47bf901d56ae981f291a4.tar.bz2
drakx-c0fc9f49955f718e14c47bf901d56ae981f291a4.tar.xz
drakx-c0fc9f49955f718e14c47bf901d56ae981f291a4.zip
move /image_raw to /cdrom
Diffstat (limited to 'move/tree/mdk_move_loop')
-rwxr-xr-xmove/tree/mdk_move_loop4
1 files changed, 2 insertions, 2 deletions
diff --git a/move/tree/mdk_move_loop b/move/tree/mdk_move_loop
index 00158727d..b98c4a417 100755
--- a/move/tree/mdk_move_loop
+++ b/move/tree/mdk_move_loop
@@ -22,7 +22,7 @@ sub to_memory {
if (-e "/$file") {
system("sudo mv /$file /tmp");
} else {
- system("sudo cp /image_raw/$file /tmp");
+ system("sudo cp /cdrom/$file /tmp");
}
system("sudo losetup /dev/$loop /tmp/$file");
}
@@ -30,7 +30,7 @@ sub to_memory {
sub to_cdrom {
my ($loop, $file) = @_;
my $f = -e "/$file" ? "/$file" : -e "/tmp/$file" ? "/tmp/$file" : return;
- system("sudo losetup /dev/$loop /image_raw/$file");
+ system("sudo losetup /dev/$loop /cdrom/$file");
system("sudo rm $f");
}