2006-04-03 17:01:43 +02:00
|
|
|
#!/bin/sh
|
2011-07-20 16:01:45 +02:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2006-10-25 15:40:36 +02:00
|
|
|
PATH=/bin:/sbin:/usr/bin:/usr/sbin
|
2011-07-30 13:14:00 +02:00
|
|
|
PROTO=${1:-proto}
|
|
|
|
sed -n '1,/@ACPI/p' <${PROTO} | grep -v @ACPI@
|
2010-09-02 17:44:36 +02:00
|
|
|
if [ -e acpi ]
|
|
|
|
then
|
|
|
|
echo " acpi ---755 0 0 acpi"
|
|
|
|
fi
|
2011-07-30 13:14:00 +02:00
|
|
|
sed -n '/@ACPI/,/@DEV/p' <${PROTO} | grep -v -e @ACPI@ -e @DEV@
|
2006-04-03 21:36:15 +02:00
|
|
|
(
|
|
|
|
cd /dev
|
2009-10-01 18:36:14 +02:00
|
|
|
ls -aln | grep '^[bc]' | egrep -v ' (fd1|fd0p|tcp|eth|ip|udp|tty[pq]|pty)' | grep -v 13, | \
|
2006-04-03 17:01:43 +02:00
|
|
|
sed -e 's/^[bc]/& /' -e 's/rw-/6/g' -e 's/r--/4/g' \
|
|
|
|
-e 's/-w-/2/g' -e 's/---/0/g' | \
|
|
|
|
awk '{ printf "\t\t%s %s--%s %d %d %d %d \n", $11, $1, $2, $4, $5, $6, $7; }'
|
2006-04-03 21:36:15 +02:00
|
|
|
)
|
2011-07-30 13:14:00 +02:00
|
|
|
sed -n '/@DEV/,$p' <${PROTO} | grep -v @DEV@
|