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
783 B
Bash
35 lines
783 B
Bash
#!/bin/sh
|
|
|
|
. /usr/lib/configsync_lib.sh
|
|
|
|
CS_SERVICE=cswireless24
|
|
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 2.4 11g
|
|
}
|
|
|
|
dynamic_update()
|
|
{
|
|
my_logger "This is ${0}/dynamic_update()!"
|
|
$PATH_TO_CONFIGSYNC_EXECUTOR/common/radio $CS_SERVICE dynamic_update 2.4 11g
|
|
}
|
|
|
|
init()
|
|
{
|
|
my_logger "This is ${0}/init()!"
|
|
$PATH_TO_CONFIGSYNC_EXECUTOR/common/radio $CS_SERVICE init 2.4 11g
|
|
}
|
|
|
|
if [ "${1}" = "init" ] || [ "${1}" = "configsync_to_system" ] || [ "${1}" = "dynamic_update" ]; then
|
|
"${@}"
|
|
else
|
|
my_logger "Unknown command ${1} in ${0}!"
|
|
fi
|