summaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc/hotplug.d/usb/10-usb-storage
blob: 14001f6ff1a62185d84e7c2f711ff71ee35f56bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

# Copyright (C) 2006 OpenWrt.org

case "$ACTION" in
	add)
		[ -n "${INTERFACE}" ] &&
		[ "$(expr substr ${INTERFACE} 1 2)" == "8/" ]  && {
			/sbin/usb-storage &
		}
		;;
esac