scripts

misc scripts and tools
git clone git://git.2f30.org/scripts
Log | Files | Refs

commit b885083b01a578fd135c457b930fbcd8bda819b9
parent 16a7d4d46bbeb0fb547481e39f4512e65da5d36e
Author: sin <sin@2f30.org>
Date:   Wed, 21 Aug 2013 11:41:14 +0100

Add dummy hotplug hook

Diffstat:
Msuckless-initramfs | 11++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/suckless-initramfs b/suckless-initramfs @@ -36,7 +36,7 @@ cd - # Create dir hierarchy rm -rf initramfs -mkdir -p initramfs/{bin,etc,dev,proc,root,sys} +mkdir -p initramfs/{bin,etc,dev,proc,root,sys,tmp} cd initramfs ln -s /bin sbin cd - @@ -74,6 +74,14 @@ cd initramfs/bin ln -s /bin/mksh sh cd - +cat << EOF > initramfs/bin/hotplug +#!/bin/sh + +env >> /tmp/hotplug-events +EOF + +chmod +x initramfs/bin/hotplug + # Our init script cat << EOF > initramfs/init #!/bin/sh @@ -82,6 +90,7 @@ export PATH=/bin:/sbin mount -t sysfs sysfs /sys mount -t proc proc /proc +echo /bin/hotplug > /proc/sys/kernel/hotplug smdev -s hostname suckless