source: branches/attitude_adjustment/package/base-files/files/sbin/hotplug-call

Last change on this file was 32062, checked in by jow, 4 years ago

[package] /etc/functions.sh => /lib/functions.sh

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 317 bytes
Line 
1#!/bin/sh
2# Copyright (C) 2006-2010 OpenWrt.org
3
4export HOTPLUG_TYPE="$1"
5
6. /lib/functions.sh
7
8PATH=/bin:/sbin:/usr/bin:/usr/sbin
9LOGNAME=root
10USER=root
11export PATH LOGNAME USER
12
13[ \! -z "$1" -a -d /etc/hotplug.d/$1 ] && {
14        for script in $(ls /etc/hotplug.d/$1/* 2>&-); do (
15                [ -f $script ] && . $script
16        ); done
17}
Note: See TracBrowser for help on using the repository browser.