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 # User is unprivileged
13 if [ "$(id -u)" -ne 0 ]
15 echo "E: need root privileges"
19 # Redirect stdout to stderr due Debconf usage
22 # Reading the default file
23 if [ -e /etc
/default
/extlinux
]
25 .
/etc
/default
/extlinux
28 EXTLINUX_UPDATE
="${EXTLINUX_UPDATE:-true}"
30 if [ "${EXTLINUX_UPDATE}" != "true" ]
32 echo "P: extlinux-update is disabled in /etc/default/extlinux."
37 # Running /etc/extlinux.d scripts
38 for _FILE
in /etc
/extlinux.d
/*