/usr/bin/bosixnet_daemon is in bosixnet-daemon 1.9-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | #!/bin/sh
# Config file
CONF_FILE="/etc/bosixnet/bosixnet-daemon.conf"
# Period of updating IPv6 address and /etc/hosts file [seconds]:
UPD_PERIOD=300
# Directory with auxiliary scripts:
DIR_UTIL="/usr/lib/bosixnet"
# Read settings from config file if it exists
[ -e "${CONF_FILE}" ] && . "${CONF_FILE}"
# Check command line options
if [ "${1}" = "-h" -o "${1}" = "--help" ]; then
echo "Usage: bosixnet_daemon [options]
This shell script periodically sends information about current IPv6 address to
remote servers and updates local /etc/hosts file based on data received from
these remote servers. It is expected that bosixnet-webui is launched on these
remote servers, but it is not mandatory.
Generic options:
-h, --help show help and exit
-v, --version show version and exit
Settings are in config file: ${CONF_FILE}"
exit 0
elif [ "${1}" = "-v" -o "${1}" = "--version" ]; then
echo "Last updated: 2016-10-19"
exit 0
fi
# Infinite cycle for periodical updates
while [ 1 ]; do
"${DIR_UTIL}/update_address" &>/dev/null
"${DIR_UTIL}/update_hosts" &>/dev/null
sleep ${UPD_PERIOD}
done
|