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.
22 lines
387 B
22 lines
387 B
#!/bin/dash
|
|
|
|
##
|
|
# This creates function that will gather some system informations
|
|
# and propagate them as environment variables.
|
|
#
|
|
|
|
. ./utils.sh
|
|
include_once system_information.sh
|
|
include_once interface_information.sh
|
|
|
|
has_class() {
|
|
if [ 1 -ne $# ]
|
|
then
|
|
logger -p syslog.err 'has_class: no class given'
|
|
exit 1
|
|
fi
|
|
|
|
test "${CLASSES}" != "${CLASSES%${1}*}"
|
|
}
|
|
|
|
# vim: set ts=4 sw=4:
|