Annotation of /trunk/mage/patches/mage-0.4.94-busybox-etc-update.patch
Parent Directory | Revision Log
Revision 2250 -
(hide annotations)
(download)
Mon Aug 12 08:03:08 2013 UTC (11 years, 1 month ago) by niro
File size: 613 byte(s)
Mon Aug 12 08:03:08 2013 UTC (11 years, 1 month ago) by niro
File size: 613 byte(s)
-fixed named
1 | niro | 2249 | 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 |