You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
776 B
Bash
35 lines
776 B
Bash
#!/bin/sh
|
|
|
|
. /usr/lib/configsync_lib.sh
|
|
|
|
CS_SERVICE=cswireless5
|
|
RADIO=wifi
|
|
|
|
my_logger() {
|
|
logger -t configsync_executor "${CS_SERVICE}" "${@}"
|
|
}
|
|
|
|
configsync_to_system()
|
|
{
|
|
my_logger "This is ${0}/configsync_to_system()!"
|
|
$PATH_TO_CONFIGSYNC_EXECUTOR/common/radio $CS_SERVICE configsync_to_system 5 11a
|
|
}
|
|
|
|
dynamic_update()
|
|
{
|
|
my_logger "This is ${0}/dynamic_update()!"
|
|
$PATH_TO_CONFIGSYNC_EXECUTOR/common/radio $CS_SERVICE dynamic_update 5 11a
|
|
}
|
|
|
|
init()
|
|
{
|
|
my_logger "This is ${0}/init()!"
|
|
$PATH_TO_CONFIGSYNC_EXECUTOR/common/radio $CS_SERVICE init 5 11a
|
|
}
|
|
|
|
if [ "${1}" = "init" ] || [ "${1}" = "configsync_to_system" ] || [ "${1}" = "dynamic_update" ]; then
|
|
"${@}"
|
|
else
|
|
my_logger "Unknown command ${1} in ${0}!"
|
|
fi
|