%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /backups/router/var/etc/
Upload File :
Create Path :
Current File : //backups/router/var/etc/rtsold_script.sh

#!/bin/sh
# this file was auto-generated, do not edit
if [ -z "${1}" ]; then
    echo "Nothing to do."
    exit 0
fi
if grep -q "^interface ${1} " /var/etc/radvd.conf; then
       echo "Rejecting own configuration."
       exit 0
fi
if [ -n "${2}" ]; then
    # Note that the router file can be written by ppp-linkup.sh or
    # this script so do not clear the file as it may already exist.
    /usr/local/sbin/ifctl -i ${1} -6rd -a ${2}
fi
if [ -f /var/run/dhcp6c.pid ]; then
    if ! /bin/pkill -0 -F /var/run/dhcp6c.pid; then
        rm -f /var/run/dhcp6c.pid
    fi
fi
if [ -f /var/run/dhcp6c.pid ]; then
    /usr/bin/logger -t dhcp6c "RTSOLD script - Sending SIGHUP to dhcp6c"
    /bin/pkill -HUP -F /var/run/dhcp6c.pid
else
    /usr/bin/logger -t dhcp6c "RTSOLD script - Starting dhcp6c daemon"
    /usr/local/sbin/dhcp6c -c '/var/etc/dhcp6c.conf' -p '/var/run/dhcp6c.pid'
fi

Zerion Mini Shell 1.0