[arm-allstar] Shutting down a node safely in a vehicle, need some input

Michael Webb mike.wg5eek at gmail.com
Sat Mar 26 22:15:54 EDT 2022


Also, use Supermon and click Shutdown on your phone. Or SSH in and type
shutdown.

There are lots of ways.

On Sat, Mar 26, 2022, 5:14 PM "Dave Petrie via ARM-allstar" <
arm-allstar at hamvoip.org> wrote:

> The B1 dtmf command can be changed to you choice, I am assuming your friend
> has
> a radio connected to the node so dtmf command can be sent to the node
> receiver.
> the B1 dtmf command calls a script, usr/local/sbin/halt.sh
>
> and the nice thing about that is the voice announcement you will hear that
> your command
> has been accepted and no guesswork. It makes the announcement and then
> shuts down
> the software then powers down. Here is the file just for reference and it's
> so easy to enable
> by editing the rpt.conf
>
> #!/bin/bash
>
> # Notify via voice and Halt the system
>
> if ! [ -z "$1" ]
>   then
>
>     /usr/bin/asterisk -rx "rpt localplay $1 /usr/local/sbin/halt"
>
>     sleep 10
>
>   fi
>
> /usr/local/sbin/astdn.sh
> /bin/sleep 1
> /usr/bin/poweroff
>
>
> On Sat, Mar 26, 2022 at 4:57 PM Dave Petrie <wa2kjc at gmail.com> wrote:
>
> > in /etc/asterisk/rpt.conf  edit rpt.conf to uncomment the command to
> > shutdown the software so you can then turn off the power safely.
> > so in rpt.conf in the [functions????] your node in place of ???? like
> mine
> > is 40039
> > work you way down to the ;Example functions
> >
> > [functions40039]
> > ; Example functions to call scripts
> > ; These are commented out. Remove ';' and change function
> > ; command and node to your choice
> > ; Note that halting the system remotely would require
> > ; a power cycle to recover.
> >
> > ; Halt the system (linux total shutdown)
> > ;B1=cmd,/usr/local/sbin/halt.sh 40039
> >  so just remove the ; semicolon in front of the B1
> > save and reboot to test, send a dtmf *B1
> >
> >
> >
> >
> > On Sat, Mar 26, 2022 at 4:34 PM "Jed Barton via ARM-allstar" <
> > arm-allstar at hamvoip.org> wrote:
> >
> >> Hey guys,
> >>
> >> Hope all is going well.  So a friend of mine is putting together a
> >> node for his vehicle.  We're trying to figure out the best way to shut
> >> down the node safely.  Obviously just killing the power isn't the best
> >> idea.  Anyone done this, and are there options to make this work?
> >>
> >> Cheers,
> >>
> >> Jed
> >> _______________________________________________
> >>
> >> ARM-allstar mailing list
> >> ARM-allstar at hamvoip.org
> >> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> >>
> >> Visit the BBB and RPi2/3/4 web page - http://hamvoip.org
> >>
> >
> _______________________________________________
>
> ARM-allstar mailing list
> ARM-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3/4 web page - http://hamvoip.org
>


More information about the ARM-allstar mailing list