mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
network/radvd: Enhancements to init script
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
ea7aa1b578
commit
b00aabe841
1 changed files with 6 additions and 4 deletions
|
@ -5,20 +5,22 @@
|
|||
# Start/stop/restart the radvd daemon.
|
||||
|
||||
if ! [ -f /proc/net/if_inet6 ]; then
|
||||
echo "IPv6 support not found, exiting"
|
||||
echo "IPv6 support not found; exiting..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
radvd_start() {
|
||||
if [ -x /usr/sbin/radvd ]; then
|
||||
echo "Starting radvd..."
|
||||
echo "Starting radvd: /usr/sbin/radvd -u daemon -m logfile"
|
||||
echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
|
||||
/usr/sbin/radvd -u daemon
|
||||
mkdir -p /var/run/radvd
|
||||
chown daemon:daemon /var/run/radvd
|
||||
/usr/sbin/radvd -u daemon -m logfile
|
||||
fi
|
||||
}
|
||||
|
||||
radvd_stop() {
|
||||
/bin/kill $(cat /var/run/radvd/radvd.pid)
|
||||
/bin/kill $(cat /var/run/radvd/radvd.pid 2>/dev/null) 2>/dev/null
|
||||
}
|
||||
|
||||
radvd_restart() {
|
||||
|
|
Loading…
Reference in a new issue