[arm-allstar] Shutdown Script to Broadcast a QRT Message

Doug Crompton wa3dsp at gmail.com
Thu May 21 12:03:24 EDT 2020


Correction - when you activate shutdown  *B1  will shutdown. I mistakenly
wrote *B0.


*73 Doug*

*WA3DSP*

*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*


On Thu, May 21, 2020 at 10:30 AM Doug Crompton <wa3dsp at gmail.com> wrote:

> Steve,
>
> You have to activate the shutdown in rpt.conf. It could be commented out.
> See the [function] section and look for the B1 command. If it has a  ;
> before it remove it and restart asterisk. Then *B0 will shutdown your
> system playing the message. You can change the function code to something
> else if you desire.
>
>
> *73 Doug*
>
> *WA3DSP*
>
> *http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
>
>
> On Thu, May 21, 2020 at 10:21 AM "Steve Matzura via ARM-allstar" <
> arm-allstar at hamvoip.org> wrote:
>
>> Doug,
>>
>>
>> Interesting. My node never plays anything when I shut it down, which is
>> why I asked in the first place. If it did, I'd've figured out where that
>> happened (LOL). I'll have to look into why it is that I hear nothing.
>> Thanks for the tip/pointer.
>>
>>
>> On 5/20/2020 4:52 PM, "Doug Crompton via ARM-allstar" wrote:
>> > Steve,
>> >
>> >   At the end of the shutdown script -
>> /usr/local/sbin/shutdown_monitor.sh
>> > are the lines -
>> >
>> > # Play shutdown message
>> > /usr/bin/asterisk -rx "rpt localplay $NODE1 /usr/local/sbin/powerdown"
>> > sleep 5
>> > /usr/bin/poweroff
>> >
>> > Where it plays a pre-made powerdown audio file. You can change that
>> file to
>> > whatever you want. I would rename the powerdown.wav file to
>> > powerdown.wav.old then create a new powerdown.wav or powerdown.ul file
>> with
>> > your audio.  If it is longer than the 5 seconds or so be sure to change
>> the
>> > sleep to longer.  While there is no guarantee that the file would not be
>> > overwritten in the future it is not likely. You can always save a backup
>> > copy.
>> >
>> > *73 Doug, WA3DSP*
>> > *http://wa3dsp.org <http://wa3dsp.org>*
>> >
>> >
>> >
>> > *73 Doug*
>> >
>> > *WA3DSP*
>> >
>> > *http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
>> >
>> >
>> > On Wed, May 20, 2020 at 4:44 PM "Steve Matzura via ARM-allstar" <
>> > arm-allstar at hamvoip.org> wrote:
>> >
>> >> I was thinking about writing such a thing. Are there any points in the
>> >> shutdown sequence that would allow for insertion of a custom script? If
>> >> the answer is no, then I won't bother, as it would probably be
>> >> overwritten on the next update.
>> >>
>> >> _______________________________________________
>> >>
>> >> 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
>> _______________________________________________
>>
>> 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