summaryrefslogtreecommitdiff
path: root/initscripts/initscripts-1.0
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-10-13 20:32:07 +0000
committerChris Larson <clarson@kergoth.com>2004-10-13 20:32:07 +0000
commitab07e56981ce6048ee006ac1c7bfb6b767079fb6 (patch)
tree991e44b6877a2bfb323d0956e2d55055e54aa560 /initscripts/initscripts-1.0
parent5622d90ad2d7c5233407592b3b5232ef933c21d3 (diff)
Merge openembedded@openembedded.bkbits.net:packages
into handhelds.org:/home/kergoth/code/packages 2004/10/13 20:37:34+01:00 (none)!pb reorder initscripts to make devices and udev play better together 2004/10/13 20:36:40+01:00 (none)!pb reorder initscripts to make devices and udev play better together BKrev: 416d90c7BonEBv7zQf5T56t8D_tI3g
Diffstat (limited to 'initscripts/initscripts-1.0')
-rw-r--r--initscripts/initscripts-1.0/devices5
-rw-r--r--initscripts/initscripts-1.0/sysfs.sh11
2 files changed, 16 insertions, 0 deletions
diff --git a/initscripts/initscripts-1.0/devices b/initscripts/initscripts-1.0/devices
index 9820f363c6..141a60d59e 100644
--- a/initscripts/initscripts-1.0/devices
+++ b/initscripts/initscripts-1.0/devices
@@ -5,6 +5,11 @@
. /etc/default/rcS
+# exit without doing anything if udev is active
+if test -x /bin/pidof -a "`pidof udevd`" != "" then
+ exit 0
+fi
+
if test -e /dev/.devfsd
then
if test "$VERBOSE" != "no"; then echo -n "Setting up device links for devfs: "; fi
diff --git a/initscripts/initscripts-1.0/sysfs.sh b/initscripts/initscripts-1.0/sysfs.sh
index e69de29bb2..4486128ad5 100644
--- a/initscripts/initscripts-1.0/sysfs.sh
+++ b/initscripts/initscripts-1.0/sysfs.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ -e /proc ] && ! [ -e /proc/mounts ]; then
+ mount -t proc proc /proc
+fi
+
+if [ -e /sys ] && grep -q sysfs /proc/filesystems; then
+ mount sysfs /sys -t sysfs
+fi
+
+exit 0