Skip to content

Commit 8501c8c

Browse files
committed
-
1 parent 041b538 commit 8501c8c

File tree

7 files changed

+123
-60
lines changed

7 files changed

+123
-60
lines changed

scripts/coderbot

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ PIDFILE=/var/run/$DAEMON_NAME.pid
2626

2727
do_start () {
2828
log_daemon_msg "Starting system $DAEMON_NAME daemon"
29-
#start-stop-daemon --start --background --pidfile $PIDFILE --make-pidfile --user $DAEMON_USER --chdir $DIR --chuid $DAEMON_USER --startas $DAEMON
30-
export LD_PRELOAD=/usr/lib/uv4l/uv4lext/armv6l/libuv4lext.so
3129
start-stop-daemon --start --background --pidfile $PIDFILE --make-pidfile --user $DAEMON_USER --chdir $DIR --chuid $DAEMON_USER --exec /usr/bin/python -- ./init.py
3230
log_end_msg $?
3331
}

scripts/etc/dnsmasq.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
interface=wlan0 # To get dnsmasq to listen only on wlan0.
2+
dhcp-range=10.0.0.2,10.0.0.5,255.255.255.0,12h # This sets the available range from 10.0.0.2 to 10.0.0.5
3+
dhcp-authoritative

scripts/etc/hostapd/hostapd.RT5370

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
interface=wlan0
2+
driver=nl80211
3+
#driver=rtl871xdrv
4+
ctrl_interface=/var/run/hostapd
5+
ctrl_interface_group=0
6+
ssid=coderbot
7+
hw_mode=g
8+
channel=8
9+
wpa=2
10+
wpa_passphrase=coderbot
11+
wpa_key_mgmt=WPA-PSK
12+
wpa_pairwise=CCMP
13+
rsn_pairwise=CCMP
14+
beacon_int=100
15+
auth_algs=3
16+
wmm_enabled=1

scripts/etc/hostapd/hostapd.RTL8188

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
interface=wlan0
2+
#driver=nl80211
3+
driver=rtl871xdrv
4+
ctrl_interface=/var/run/hostapd
5+
ctrl_interface_group=0
6+
ssid=coderbot
7+
hw_mode=g
8+
channel=8
9+
wpa=2
10+
wpa_passphrase=coderbot
11+
wpa_key_mgmt=WPA-PSK
12+
wpa_pairwise=CCMP
13+
rsn_pairwise=CCMP
14+
beacon_int=100
15+
auth_algs=3
16+
wmm_enabled=1

scripts/etc/hostapd/hostapd.conf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
interface=wlan0
2+
#driver=nl80211
3+
driver=rtl871xdrv
4+
ctrl_interface=/var/run/hostapd
5+
ctrl_interface_group=0
6+
ssid=coderbot
7+
hw_mode=g
8+
channel=8
9+
wpa=2
10+
wpa_passphrase=coderbot
11+
wpa_key_mgmt=WPA-PSK
12+
wpa_pairwise=CCMP
13+
rsn_pairwise=CCMP
14+
beacon_int=100
15+
auth_algs=3
16+
wmm_enabled=1

scripts/hostapd

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
#!/bin/sh
2+
3+
### BEGIN INIT INFO
4+
# Provides: hostapd
5+
# Required-Start: $remote_fs
6+
# Required-Stop: $remote_fs
7+
# Should-Start: $network
8+
# Should-Stop:
9+
# Default-Start: 2 3 4 5
10+
# Default-Stop: 0 1 6
11+
# Short-Description: Advanced IEEE 802.11 management daemon
12+
# Description: Userspace IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP
13+
# Authenticator
14+
### END INIT INFO
15+
16+
PATH=/sbin:/bin:/usr/sbin:/usr/bin
17+
DAEMON_SBIN_1=/usr/sbin/hostapd.RT5370
18+
DAEMON_SBIN_2=/usr/sbin/hostapd.RTL8188
19+
DAEMON_DEFS_1=/etc/hostapd/hostapd.RT5370
20+
DAEMON_DEFS_2=/etc/hostapd/hostapd.RTL8188
21+
DAEMON_CONF=
22+
NAME=hostapd
23+
DESC="advanced IEEE 802.11 management"
24+
PIDFILE=/var/run/hostapd.pid
25+
26+
[ -x "$DAEMON_SBIN_1" ] || exit 0
27+
[ -s "$DAEMON_DEFS_1" ] && . /etc/default/hostapd
28+
[ -n "$DAEMON_CONF" ] || exit 0
29+
30+
DAEMON_OPTS="-B -P $PIDFILE $DAEMON_OPTS $DAEMON_CONF"
31+
32+
. /lib/lsb/init-functions
33+
34+
case "$1" in
35+
start)
36+
log_daemon_msg "Starting $DESC" "$NAME"
37+
echo "starting 1"
38+
start-stop-daemon --start --oknodo --quiet --exec "$DAEMON_SBIN_1" --pidfile "$PIDFILE" -- $DAEMON_DEFS_1 >/dev/null
39+
echo "starting 2"
40+
start-stop-daemon --start --oknodo --quiet --exec "$DAEMON_SBIN_2" --pidfile "$PIDFILE" -- $DAEMON_DEFS_2 >/dev/null
41+
echo "$?"
42+
log_end_msg "$?"
43+
;;
44+
stop)
45+
log_daemon_msg "Stopping $DESC" "$NAME"
46+
start-stop-daemon --stop --oknodo --quiet --exec "$DAEMON_SBIN_1" --pidfile "$PIDFILE"
47+
start-stop-daemon --stop --oknodo --quiet --exec "$DAEMON_SBIN_2" --pidfile "$PIDFILE"
48+
log_end_msg "$?"
49+
;;
50+
reload)
51+
log_daemon_msg "Reloading $DESC" "$NAME"
52+
start-stop-daemon --stop --signal HUP --exec "$DAEMON_SBIN_1" --pidfile "$PIDFILE"
53+
start-stop-daemon --stop --signal HUP --exec "$DAEMON_SBIN_2" --pidfile "$PIDFILE"
54+
log_end_msg "$?"
55+
;;
56+
restart|force-reload)
57+
$0 stop
58+
sleep 8
59+
$0 start
60+
;;
61+
status)
62+
status_of_proc "$DAEMON_SBIN_1" "$NAME"
63+
exit $?
64+
;;
65+
*)
66+
N=/etc/init.d/$NAME
67+
echo "Usage: $N {start|stop|restart|force-reload|reload|status}" >&2
68+
exit 1
69+
;;
70+
esac
71+
72+
exit 0

scripts/uv4l_raspicam.sh

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)