From 6fe72bc84ee8926d787613455b0c5eccf23788e2 Mon Sep 17 00:00:00 2001 From: jim-p Date: Thu, 29 Jul 2010 14:03:36 -0400 Subject: [PATCH] Use cp -p to preserve permissions (exec) --- etc/rc.firmware | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/rc.firmware b/etc/rc.firmware index 036c340526..35b25e8d07 100755 --- a/etc/rc.firmware +++ b/etc/rc.firmware @@ -84,7 +84,7 @@ binary_update() { rm ${ERR_F} 2>/dev/null /bin/mkdir /tmp/patched /tmp/patches 2>>${ERR_F} # Save the old shutdown binary. If we switch from i386 to amd64 (or back) the reboot binary won't run at the end since it doesn't match up. - /bin/cp /sbin/shutdown /sbin/shutdown.old + /bin/cp -p /sbin/shutdown /sbin/shutdown.old backup_chflags remove_chflags cd /tmp/patches