/usr/bin/bosixnet_daemon is in bosixnet-daemon 1.7-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 | #!/bin/sh
# Config file
CONF_FILE="/etc/bosixnet/bosixnet-daemon.conf"
# Period of updating IPv6 address and /etc/hosts [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 server and updates local /etc/hosts based on data received from that
remote server. It is expected that bosixnet-webui is launched on remote server.
Generic options:
-h, --help show help
-v, --version show version
Settings are in config file: ${CONF_FILE}"
exit 0
elif [ "${1}" = "-v" -o "${1}" = "--version" ]; then
echo "Last updated: 2014-02-05"
exit 0
fi
# Infinite cycle for periodical updates
while [ 1 ]; do
"${DIR_UTIL}/update_address" >/dev/null 2>/dev/null
"${DIR_UTIL}/update_hosts" >/dev/null 2>/dev/null
sleep ${UPD_PERIOD}
done
|