-
Notifications
You must be signed in to change notification settings - Fork 0
/
rc.local
39 lines (33 loc) · 880 Bytes
/
rc.local
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi
# starting ax0 interface using kissattach
if [ -x /usr/sbin/kissattach ]; then
echo "Starting Kissattach: Binding port ax0"
/usr/sbin/kissattach /dev/serial0 1 10.1.1.1
fi
# starting mheard daemon
if [ -x /usr/sbin/mheardd ]; then
echo "Starting Mheard Daemon"
/usr/sbin/mheardd
fi
# starting a 30 min beacon message
if [ -x /usr/sbin/beacon ]; then
echo "Starting Beacon for G6ORL"
beacon -c G6xxx -t 30 1 "G6xx some location Hampshire UK"
fi
exit 0