--- branches/mage-next/src/etc-update.in 2014/03/27 08:11:16 2636 +++ branches/mage-next/src/etc-update.in 2014/03/27 08:15:57 2637 @@ -311,7 +311,11 @@ read my_input case ${my_input} in 1) echo "Replacing ${ofile} with ${mfile}" - chmod --reference=${ofile} ${mfile} + # busybox does not support --reference + if ! chmod --reference=${ofile} ${mfile} > /dev/null 2&>1 + then + chmod $(stat -c %a ${ofile}) ${mfile} + fi mv ${mv_opts} ${mfile} ${ofile} rm ${rm_opts} ${file} return 255