lfs/process-scripts.sh
Bruce Dubbs 12bc33686f Add udev rules as an appendix
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8549 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2008-06-04 17:15:04 +00:00

33 lines
1022 B
Bash

#!/bin/sh
# Boot scripts
for s in bootscripts/lfs/init.d/* \
bootscripts/lfs/sysconfig/* \
bootscripts/lfs/sysconfig/network-devices/* \
bootscripts/lfs/sysconfig/network-devices/services/*
do
script=$(basename $s)
# Skip directories
[ $script == 'network-devices' ] && continue
[ $script == 'services' ] && continue
# Disambiguate duplicate file names
[ $s == 'bootscripts/lfs/sysconfig/rc' ] && script='rc-sysinit';
[ $s == 'bootscripts/lfs/sysconfig/modules' ] && script='modules-sysinit';
sed -e 's/\&/\&amp\;/g' -e 's/</\&lt\;/g' -e 's/>/\&gt\;/g' \
-e "s/'/\&apos\;/g" -e 's/"/\&quot\;/g' -e 's/\t/ /g' \
$s > appendices/${script}.script
done
# Udev rules
for s in udev-config/*.rules
do
script=$(basename $s)
sed -e 's/\&/\&amp\;/g' -e 's/</\&lt\;/g' -e 's/>/\&gt\;/g' \
-e "s/'/\&apos\;/g" -e 's/"/\&quot\;/g' -e 's/\t/ /g' \
$s > appendices/${script}.script
done