1 # 2 # Copyright (C) 2015 The Android Open Source Project 3 # 4 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # you may not use this file except in compliance with the License. 6 # You may obtain a copy of the License at 7 # 8 # http://www.apache.org/licenses/LICENSE-2.0 9 # 10 # Unless required by applicable law or agreed to in writing, software 11 # distributed under the License is distributed on an "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # See the License for the specific language governing permissions and 14 # limitations under the License. 15 # 16 17 description "Abstract job that runs when boot-services is complete" 18 author "chromium-os-dev (at] chromium.org" 19 20 # The shill task and iptables will start when this task is started. 21 # This allows shill to be restarted without restarting iptables. 22 start on started boot-services 23 24 pre-start script 25 # Load the module that provides the WiFi configuration API, since 26 # shill will abort if that API is not available. In most cases, 27 # cfg80211 will be loaded implicitly when the device driver is 28 # loaded (in preload-network). However, this deals with the 29 # first-boot case, in case shill starts before the device driver is 30 # loaded. 31 @load_cfg80211@ || logger -p err -t "$UPSTART_JOB" "Failed to load cfg80211" 32 end script 33