From fd4ddfd24051c4c2118095d921ac7d1459a9578d Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 25 Jan 2010 17:11:17 +0000 Subject: add preinit modularization work by Daniel Dickinson (cshore) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19331 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/lib/preinit/60_init_hotplug | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 package/base-files/files/lib/preinit/60_init_hotplug (limited to 'package/base-files/files/lib/preinit/60_init_hotplug') diff --git a/package/base-files/files/lib/preinit/60_init_hotplug b/package/base-files/files/lib/preinit/60_init_hotplug new file mode 100644 index 0000000000..dc05e0ed05 --- /dev/null +++ b/package/base-files/files/lib/preinit/60_init_hotplug @@ -0,0 +1,10 @@ +#!/bin/sh +# Copyright (C) 2006 OpenWrt.org +# Copyright (C) 2010 Vertical Communications + +init_hotplug() { + echo "$HOTPLUG" > /proc/sys/kernel/hotplug +} + +boot_hook_add preinit_main init_hotplug + -- cgit v1.2.3