2008-06-03 22:51:14 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2008-06-04 18:15:04 +01:00
|
|
|
# Boot scripts
|
2008-06-03 22:51:14 +01:00
|
|
|
for s in bootscripts/lfs/init.d/* \
|
|
|
|
bootscripts/lfs/sysconfig/* \
|
|
|
|
bootscripts/lfs/sysconfig/network-devices/* \
|
|
|
|
bootscripts/lfs/sysconfig/network-devices/services/*
|
|
|
|
do
|
2008-06-04 18:15:04 +01:00
|
|
|
script=$(basename $s)
|
2008-06-03 22:51:14 +01:00
|
|
|
|
|
|
|
# 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/\&/\&\;/g' -e 's/</\<\;/g' -e 's/>/\>\;/g' \
|
|
|
|
-e "s/'/\&apos\;/g" -e 's/"/\"\;/g' -e 's/\t/ /g' \
|
|
|
|
$s > appendices/${script}.script
|
|
|
|
done
|
|
|
|
|
2008-06-04 18:15:04 +01:00
|
|
|
# Udev rules
|
|
|
|
for s in udev-config/*.rules
|
|
|
|
do
|
|
|
|
script=$(basename $s)
|
|
|
|
|
|
|
|
sed -e 's/\&/\&\;/g' -e 's/</\<\;/g' -e 's/>/\>\;/g' \
|
|
|
|
-e "s/'/\&apos\;/g" -e 's/"/\"\;/g' -e 's/\t/ /g' \
|
|
|
|
$s > appendices/${script}.script
|
|
|
|
done
|