blob: 2f0b07596a9c2842d1e1d13bc771cd0949e7ff9d (
plain)
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
|
#
# init.rc fragment for hostapd on Android
# Copyright (c) 2002-2016, Jouni Malinen <j@w1.fi>
#
# This software may be distributed under the terms of the BSD license.
# See README for more details.
#
on post-fs-data
mkdir /data/vendor/wifi/hostapd 0770 wifi wifi
mkdir /data/misc/wifi/hostapd 0770 wifi wifi
service hostapd /vendor/bin/hostapd \
-e /data/misc/wifi/entropy.bin \
/data/misc/wifi/hostapd.conf
class main
user wifi
group wifi net_raw net_admin
writepid /data/misc/wifi/hostapd.pid
disabled
oneshot
service hostapd_dual /vendor/bin/hostapd \
-e /data/misc/wifi/entropy.bin \
/data/vendor/wifi/hostapd_dual2g.conf \
/data/vendor/wifi/hostapd_dual5g.conf
class main
user wifi
group wifi net_raw net_admin
writepid /data/vendor/wifi/hostapd.pid
disabled
oneshot
|