Stand-alone Nodes

There are times when a node will need to be set standalone. For example:

There is downsides:

Ground work(Edit)

This will only work on VKLink version 2 and up.

Before you disconnect your node from the network, you will have to change download the aststart script, and modify the initial startup script:

Download the script:(Edit)

# wget -O /usr/
# chmod +x /usr/

Editing the scripts(Edit)

Now you have to edit the script to invoke this. Here is the original file:

until /usr/bin/wget --no-check-certificate -q --tries=10 --timeout=20 --spider --delete-after; do
    echo "No Internet Connectivity" >&2
    sleep 2
/usr/bin/wget --no-check-certificate -N "" -O /root/astrun/
chmod +x /root/astrun/
/root/astrun/ &

Modify it to look like this:

#until /usr/bin/wget --no-check-certificate -q --tries=10 --timeout=20 --spider --delete-after; do
#    echo "No Internet Connectivity" >&2
#    sleep 2
#/usr/bin/wget --no-check-certificate -N "" -O /root/astrun/
#chmod +x /root/astrun/
#/root/astrun/ &

sleep 10
#restart asterisk
sleep 10
killall asterisk
killall asterisk
echo "waiting"
sleep 10
/usr/ &

Editing rpt.conf(Edit)

After this is done, edit /etc/asterisk/rpt.conf and add this line to each node:


Changes in raspiconfig(Edit)

The raspi is set to not start unless a network cable is in. This has to be changed


# sudo raspiconfig

Got to:

Boot options, press ENTER

Wait for network, press ENTER

and Select NO.


Without a network cable plugged in, do a reboot and Asterisk should start and stay started after 30 seconds.

Main page | Advanced Stuff