1a64af8d1b
generate list of commands from provided MAKEDEV script with given arguments, to feed into makedev2spec.awk makedev2spec.awk take output of MAKEDEV.wrapper and generate an mtree(8) specfile.
24 lines
654 B
Bash
Executable File
24 lines
654 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# MAKEDEV.wrapper --
|
|
# Wrapper script for the MAKEDEV script defined in ${MAKEDEVSCRIPT}
|
|
# to output a list of commands that MAKEDEV would have run to
|
|
# generate the specified devices/special nodes. This list can then
|
|
# be converted into an mtree(8) specfile by makedev2spec.awk
|
|
#
|
|
|
|
ln() { echo "ln $*" ; }
|
|
rm() { echo "rm $*" ; }
|
|
mknod() { echo "mknod $*" ; }
|
|
chgrp() { echo "chgrp $*" ; }
|
|
chmod() { echo "chmod $*" ; }
|
|
chown() { echo "chown $*" ; }
|
|
mkdir() { echo "mkdir $*" ; }
|
|
|
|
if [ -n "$MAKEDEVSCRIPT" -a -f "$MAKEDEVSCRIPT" ]; then
|
|
. $MAKEDEVSCRIPT
|
|
else
|
|
echo 1>&2 "\$MAKEDEVSCRIPT needs to be defined and refer to a file."
|
|
exit 1
|
|
fi
|