Magellan Linux

Annotation of /trunk/mage/patches/mage-0.9.94-busybox-etc-update.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2249 - (hide annotations) (download)
Mon Aug 12 08:02:21 2013 UTC (10 years, 9 months ago) by niro
File size: 613 byte(s)
-support busybox with etc-update
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