Contents of /trunk/mage/patches/mage-0.4.94-busybox-etc-update.patch
Parent Directory | Revision Log
Revision 2249 -
(show annotations)
(download)
Mon Aug 12 08:02:21 2013 UTC (11 years, 1 month ago) by niro
Original Path: trunk/mage/patches/mage-0.9.94-busybox-etc-update.patch
File size: 613 byte(s)
Mon Aug 12 08:02:21 2013 UTC (11 years, 1 month ago) by niro
Original Path: trunk/mage/patches/mage-0.9.94-busybox-etc-update.patch
File size: 613 byte(s)
-support busybox with etc-update
1 | Index: mage/usr/lib/mage/etc-update |
2 | =================================================================== |
3 | --- mage/usr/lib/mage/etc-update (Revision 2143) |
4 | +++ mage/usr/lib/mage/etc-update (Arbeitskopie) |
5 | @@ -314,6 +314,11 @@ |
6 | case ${my_input} in |
7 | 1) echo "Replacing ${ofile} with ${mfile}" |
8 | chmod --reference=${ofile} ${mfile} |
9 | + # busybox does not support --reference |
10 | + if ! chmod --reference=${ofile} ${mfile} > /dev/null 2&>1 |
11 | + then |
12 | + chmod $(stat -c %a ${ofile}) ${mfile} |
13 | + fi |
14 | mv ${mv_opts} ${mfile} ${ofile} |
15 | rm ${rm_opts} ${file} |
16 | return 255 |