blob: 8a5b4b05cc476d5354687e05b612d3ebdcc6c1b3 [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
Roshan Piuscc817562017-12-22 14:45:05 -080010 mkdir /data/vendor/wifi 0770 wifi wifi
11 mkdir /data/vendor/wifi/hostapd 0770 wifi wifi
Christopher Wiley5ec95102016-07-13 10:34:47 -070012
Roshan Piuscc817562017-12-22 14:45:05 -080013service hostapd /vendor/bin/hw/hostapd
Roshan Pius65ff09b2018-02-05 16:14:40 -080014 interface android.hardware.wifi.hostapd@1.0::IHostapd default
Christopher Wiley5ec95102016-07-13 10:34:47 -070015 class main
16 user wifi
Ningyuan Wangbee0fd92017-05-26 15:43:55 -070017 group wifi net_raw net_admin
Christopher Wiley5ec95102016-07-13 10:34:47 -070018 disabled
19 oneshot