You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
856 B
21 lines
856 B
# global variables and functions that are used by our scripts...
|
|
|
|
HOSTNAME=$(hostname)
|
|
BASENAME=${0##*/}
|
|
|
|
alias LOGINFO='logger -p user.info -t ${BASENAME}[${$}]'
|
|
alias LOGWARN='logger -p user.warn -t ${BASENAME}[${$}]'
|
|
alias LOGDEBUG='logger -p user.debug -t ${BASENAME}[${$}]'
|
|
alias LOGERROR='logger -p user.error -t ${BASENAME}[${$}]'
|
|
|
|
alias SHOWINFO='echo $(date +"%b %d %H:%M:%S") ${HOSTNAME%%.*} user.info ${BASENAME}[${$}]:'
|
|
alias SHOWWARN='echo $(date +"%b %d %H:%M:%S") ${HOSTNAME%%.*} user.warn ${BASENAME}[${$}]:'
|
|
alias SHOWDEBUG='echo $(date +"%b %d %H:%M:%S") ${HOSTNAME%%.*} user.debug ${BASENAME}[${$}]:'
|
|
alias SHOWERROR='echo $(date +"%b %d %H:%M:%S") ${HOSTNAME%%.*} user.error ${BASENAME}[${$}]:'
|
|
|
|
NEUTRINO_CONF="/var/tuxbox/config/neutrino.conf"
|
|
|
|
get_setting()
|
|
{
|
|
test -e $NEUTRINO_CONF && grep "^${1}=" $NEUTRINO_CONF | cut -d'=' -f2
|
|
}
|
|
|