[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: mdev not called
From: Tobias Knutsson <tobias.knutsson () gmail ! com>
Date: 2009-06-25 10:10:14
Message-ID: ccb913ac0906250310r72f34ab5j4bd4462f551a1077 () mail ! gmail ! com
[Download RAW message or body]
Hello,
I'm trying to get mdev to work dynamically but am failing miserably.
Invoking mdev -s at boottime to create device nodes works like a charm
but if i for example do:
echo remove > /sys/devices/virtual/mem/urandom/uevent
mdev will not remove the device. I know that the uevents are sent
because i can replace mdev in /proc/sys/kernel/hotplug with a script:
#!/bin/sh
echo uevent > /dev/console
echo $ACTION > /dev/console
echo $DEVPATH > /dev/console
This script will be run and the environment variables are set as
expected. I initialize mdev in an rcscript on the following form:
#!/bin/sh
#
# Dynamic /dev filesystem using mdev
#
case "$1" in
start)
/bin/echo -n "mdev: Populating dynamic /dev..."
/bin/mount -t tmpfs mdev /dev
/bin/mkdir /dev/pts
/bin/mount -t devpts devpts /dev/pts
/bin/echo /sbin/mdev > /proc/sys/kernel/hotplug
/sbin/mdev -s
/bin/echo "done"
;;
stop)
echo -n "mdev: Removing dynamic /dev entries..."
/bin/umount /dev/pts
/bin/rm -rf /dev/pts
/bin/umount /dev
echo "done"
;;
restart|reload)
"$0" stop
"$0" start
;;
*)
echo $"Usage: $0 {start|stop|restart}"
exit 1
esac
exit $?
What am i missing? Has anybody run into this problem before?
--
Hälsningar/Regards
Tobias Knutsson
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic