source: MondoRescue/branches/2.2.9/mindi-busybox/examples/var_service/ifplugd_if/ifplugd_handler@ 3320

Last change on this file since 3320 was 3320, checked in by Bruno Cornec, 9 years ago
  • Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in the move to 3.0
  • Property svn:executable set to *
File size: 299 bytes
Line 
1#!/bin/sh
2# parameters:
3# $1: interface
4# $2: state
5
6if test -d "/var/service/dhcp_$1"; then
7 if test x"$2" = x"down"; then
8 echo "Downing /var/service/dhcp_$1"
9 sv d "/var/service/dhcp_$1"
10 fi
11 if test x"$2" = x"up"; then
12 echo "Upping /var/service/dhcp_$1"
13 sv u "/var/service/dhcp_$1"
14 fi
15fi
Note: See TracBrowser for help on using the repository browser.