[go: up one dir, main page]

File: network

package info (click to toggle)
irda-utils 0.9.16-9
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,136 kB
  • ctags: 1,140
  • sloc: sh: 10,088; ansic: 7,251; makefile: 327; perl: 83
file content (24 lines) | stat: -rw-r--r-- 454 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /bin/sh
#
# network
#
# Initialize or shutdown IrLAN ethernet device drivers
#
# This script should be invoked with two arguments.  The first is the
# action to be taken, either "start", "stop", or "restart".  The
# second is the network interface name.

action=$1
device=$2

case "${action:?}" in
'start')
	/sbin/ifconfig ${device} up
    ;;
'stop')
	/sbin/ifconfig ${device} down
    ;;
'restart')
    /sbin/ifconfig ${device:?} down up
    ;;
esac