source: trunk/package/base-files/files/etc/init.d/network @ 10846

Last change on this file since 10846 was 10846, checked in by thepeople, 8 years ago

fix restart on platforms without a setup_switch()

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 414 bytes
Line 
1#!/bin/sh /etc/rc.common
2# Copyright (C) 2006 OpenWrt.org
3
4START=40
5STOP=40
6
7boot() {
8        setup_switch() { return 0; }
9
10        include /lib/network
11        setup_switch
12        [ -s /etc/config/wireless ] || \
13                /sbin/wifi detect > /etc/config/wireless
14        /sbin/wifi up
15}
16
17start() {
18        ifup -a
19        /sbin/wifi up
20}
21
22restart() {
23        setup_switch() { return 0; }
24       
25        include /lib/network
26        setup_switch
27        ifup -a
28        /sbin/wifi up
29}
30
31stop() {
32        ifdown -a
33}
Note: See TracBrowser for help on using the repository browser.