aboutsummaryrefslogtreecommitdiff
path: root/hostapd/hostapd.android.rc
blob: 26a87b8089141246d0fb8ad438550040a7c08a58 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#
# 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/misc/wifi/hostapd 0770 wifi wifi

service hostapd /vendor/bin/hostapd \
        /data/misc/wifi/hostapd.conf
    class main
    user wifi
    writepid /data/misc/wifi/hostapd.pid
    group wifi
    disabled
    oneshot