blob: f595b9e75fa958ca6ade484134e625050bd8c7d5 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#!/bin/sh
2# Copyright (C) 2006-2016 OpenWrt.org
3
4export HOTPLUG_TYPE="$1"
5
6. /lib/functions.sh
7
8PATH="%PATH%"
9LOGNAME=root
10USER=root
11export PATH LOGNAME USER
12export DEVICENAME="${DEVPATH##*/}"
13
14if [ \! -z "$1" -a -d /etc/hotplug.d/$1 ]; then
15 for script in $(ls /etc/hotplug.d/$1/* 2>&-); do (
16 [ -f $script ] && . $script
17 ); done
18fi