summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDeepti Kulkarni <deepti@vyatta.com>2012-02-29 06:14:18 -0800
committerDeepti Kulkarni <deepti@vyatta.com>2012-02-29 06:14:18 -0800
commite71405abbaa7032434a5c114a4a92ff8896e1bdb (patch)
tree0fd50c6d68b89ec316895eafe4aec737ebe06916
parent12ae7e30f0a67ef43a012f86df663e00cc9dbb85 (diff)
downloadvyatta-op-e71405abbaa7032434a5c114a4a92ff8896e1bdb.tar.gz
vyatta-op-e71405abbaa7032434a5c114a4a92ff8896e1bdb.zip
bug fix for 7826 - fixed to use correct perl functions.
-rw-r--r--scripts/rename-image.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/rename-image.pl b/scripts/rename-image.pl
index be30967..6f3084c 100644
--- a/scripts/rename-image.pl
+++ b/scripts/rename-image.pl
@@ -119,10 +119,10 @@ while ($line = <$grubfh>) {
close($tmpfh);
close($grubfh);
-mv("$image_path/$old_name", "$image_path/$new_name")
+move("$image_path/$old_name", "$image_path/$new_name")
or die "rename $old_name to $new_name failed: $!\n";
-cp($tmpfilename, "$image_path/grub/grub.cfg")
+copy($tmpfilename, "$image_path/grub/grub.cfg")
or die "copy $tmpfilename to grub.cfg failed: $!\n";
syslog("warning", "System image $old_name has been renamed $new_name");