30 lines
724 B
Plaintext
30 lines
724 B
Plaintext
#
|
|
# common definitions and variables used by all the postplug plugins
|
|
#
|
|
|
|
[ -r /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
|
|
|
|
TEXTDOMAIN=postplug
|
|
TEXTDOMAINDIR=/usr/share/locale
|
|
|
|
dialog_backtitle=$"Postplug"
|
|
DIALOG="dialog"
|
|
|
|
bootsplash_message=$"Configuring system hardware..."
|
|
|
|
postplugdir=/etc/postplug/postplug.d
|
|
rcpostplugdir=/etc/postplug/rcpostplug.d
|
|
postpluglibdir=/var/lib/postplug
|
|
postplugnewdir=${postpluglibdir}/new
|
|
|
|
function logmsg() {
|
|
local pluginame="${1:+ [$1]}"
|
|
local currtime="`LANG=C date +\"%b %d %H:%M:%S\" 2>/dev/null`"
|
|
|
|
if [ -w "$logfile" ]; then
|
|
echo "$currtime `hostname` postplug${pluginame}: $2" >> $logfile
|
|
else
|
|
echo "$currtime `hostname` postplug${pluginame}: $2"
|
|
fi
|
|
}
|