summaryrefslogtreecommitdiffstats
path: root/src.etc/init.d/mdev
blob: 66070f8dc75a2866a1c9114e16852b1f33f8287c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

case "${1}" in
	start)
		printf 'Enabling device hotplugging... '
		echo '/sbin/mdev' > /proc/sys/kernel/hotplug
		mdev -s
		printf 'done.\n'
		;;
	stop)
		printf 'Disabling device hotplugging... '
		echo '' > /proc/sys/kernel/hotplug
		printf 'done.\n'
		;;
	*)
		printf 'Usage: %s {start|stop}\n' "${0}" >&2
		exit 1
		;;
esac