aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Kyrylych <roman@archlinux.org>2008-03-11 00:02:22 +0200
committerRoman Kyrylych <roman@archlinux.org>2008-03-11 00:02:22 +0200
commit15647a9f42a00406ec1c1c02515fe1e90825bd9b (patch)
tree65a5400becea9cde6056cdf821b4d260495dc672
parent12ee0a4fe0108fe952dc31c5f42648037b9c5cde (diff)
downloadinitscripts-15647a9f42a00406ec1c1c02515fe1e90825bd9b.tar.xz
Remove the 'makedevs' script
* last touched somewhere in 2005 * not used by anything * sits in /sbin but uses software from /usr/bin * makedev in Extra exists * if one wants a static /dev - just use mknod Signed-off-by: Roman Kyrylych <roman@archlinux.org>
-rwxr-xr-xinstall.sh2
-rwxr-xr-xmakedevs26
2 files changed, 0 insertions, 28 deletions
diff --git a/install.sh b/install.sh
index a082016..7aa328e 100755
--- a/install.sh
+++ b/install.sh
@@ -18,5 +18,3 @@ done
gcc $CFLAGS -o minilogd minilogd.c || exit 1
install -D -m755 minilogd ${DESTDIR}/sbin/minilogd || exit 1
-
-install -D -m755 makedevs ${DESTDIR}/sbin/makedevs || exit 1
diff --git a/makedevs b/makedevs
deleted file mode 100755
index 3b5f41c..0000000
--- a/makedevs
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh
-
-# a cheeky way of dynamically creating a /dev tree
-devdir="/dev"
-[ "$1" ] && devdir=$1
-
-cd $devdir
-
-for i in $(find /sys/block -name dev); do
- # get the second-to-last field
- name=$(echo $i | rev | cut -d/ -f2 | rev)
- maj=$(cat $i | cut -d: -f1)
- min=$(cat $i | cut -d: -f2)
- [ ! -e $name ] && mknod $name b $maj $min
-done
-
-for i in $(find /sys/class -name dev); do
- # get the second-to-last field
- name=$(echo $i | rev | cut -d/ -f2 | rev)
- # skip all the tty?? nodes
- #[ "${name%%??}" = "tty" ] && continue
- #[ "${name%%??}" = "pty" ] && continue
- maj=$(cat $i | cut -d: -f1)
- min=$(cat $i | cut -d: -f2)
- [ ! -e $name ] && mknod $name c $maj $min
-done