diff options
author | Roman Kyrylych <roman@archlinux.org> | 2008-03-11 00:02:22 +0200 |
---|---|---|
committer | Roman Kyrylych <roman@archlinux.org> | 2008-03-11 00:02:22 +0200 |
commit | 15647a9f42a00406ec1c1c02515fe1e90825bd9b (patch) | |
tree | 65a5400becea9cde6056cdf821b4d260495dc672 | |
parent | 12ee0a4fe0108fe952dc31c5f42648037b9c5cde (diff) | |
download | initscripts-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-x | install.sh | 2 | ||||
-rwxr-xr-x | makedevs | 26 |
2 files changed, 0 insertions, 28 deletions
@@ -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 |