-
-
Save yacuken/d81efd8acbce2791ac87 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HABUILD_SDK [bacon] [hybris-11.0-bacon] rpm $ > cat device-oneplus-bacon-configs/lib/systemd/system/droid-wlan-up.service | |
[Unit] | |
Description=droid-wlan-up | |
After=droid-late-start.service | |
Before=network.target start-user-session@USER.service bluetooth.service ofono.service sensord.service | |
Conflicts=shutdown.target actdead.target | |
[Service] | |
ExecStart=/bin/sh /usr/bin/droid/droid-wlan-up.sh | |
[Install] | |
WantedBy=basic.target | |
HABUILD_SDK [bacon] [hybris-11.0-bacon] rpm $ > cat device-oneplus-bacon-configs/usr/bin/droid/droid-wlan-up.sh | |
#!/bin/sh | |
# | |
# Copyright (C) 2014 Jolla Ltd. | |
# Contact: Simonas Leleiva <simonas.leleiva@jollamobile.com> | |
# | |
# This waits for bacon WLAN firmware to be provided by conn_init | |
while [ ! -e /data/misc/wifi/WCNSS_qcom_cfg.ini ]; do | |
sleep 1 | |
echo "...waiting for wlan firmware to appear: WCNSS_qcom_cfg.ini" | |
done | |
echo "...waiting for services to settle" | |
sleep 2 | |
/sbin/modprobe wlan | |
HABUILD_SDK [bacon] [hybris-11.0-bacon] rpm $ > |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment