blob: 68f65f8414c66e0e179477e813fe8821ab1c869e [file] [log] [blame]
# Copyright 2014 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
description "Load the network drivers"
author ""
start on started boot-services
# Load the wireless driver.
modprobe ath9k
# Load the inbuilt ethernet driver.
modprobe r8169
# The driver waits for an optional userspace firmware upload.
# Normally, udev would do this. So wait for the firmware node
# to become available and signal that operation as being
# complete.
while [ ! -e "${FIRMWARE_PATH}" ]; do
sleep 1
echo 0 > "${FIRMWARE_PATH}/loading"
end script