blob: 048c66744e17388bdae5470047ffda2d5bc121a0 [file] [log] [blame]
Christopher Wiley5ec95102016-07-13 10:34:47 -07001#
2# init.rc fragment for hostapd on Android
3# Copyright (c) 2002-2016, Jouni Malinen <j@w1.fi>
4#
5# This software may be distributed under the terms of the BSD license.
6# See README for more details.
7#
8
9on post-fs-data
10 mkdir /data/misc/wifi/hostapd 0770 wifi wifi
11
Po-Chien Hsueh2051e4b2017-02-10 11:34:58 +080012service hostapd /vendor/bin/hostapd \
Christopher Wiley5ec95102016-07-13 10:34:47 -070013 /data/misc/wifi/hostapd.conf
14 class main
Tom Cherry058aa532018-03-22 16:34:29 -070015 capabilities NET_ADMIN NET_RAW
Christopher Wiley5ec95102016-07-13 10:34:47 -070016 user wifi
Ningyuan Wangbee0fd92017-05-26 15:43:55 -070017 group wifi net_raw net_admin
Christopher Wileyfa798f22016-07-29 10:11:16 -070018 writepid /data/misc/wifi/hostapd.pid
Christopher Wiley5ec95102016-07-13 10:34:47 -070019 disabled
20 oneshot