3 ## Copyright (C) 2006-2013 Daniel Baumann <mail@daniel-baumann.ch>
5 ## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
6 ## This is free software, and you are welcome to redistribute it
7 ## under certain conditions; see COPYING for details.
12 _EXTLINUX_DIRECTORY
="/boot/extlinux"
16 # Upate target file using source content
20 _TMPFILE
="${_TARGET}.tmp"
23 echo "${_SOURCE}" > "${_TMPFILE}"
25 if [ -e "${_TARGET}" ] && cmp -s "${_TARGET}" "${_TMPFILE}"
29 # FIXME: should use fsync here
30 echo "P: Updating ${_TARGET}..."
31 mv -f "${_TMPFILE}" "${_TARGET}"
35 for _FILE
in /etc
/default
/extlinux
/etc
/default
/extlinux.d
/*