mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-18 21:17:38 +00:00
2191632e22
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9910 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
34 lines
1.0 KiB
Bash
34 lines
1.0 KiB
Bash
#!/bin/bash
|
|
|
|
# Boot scripts
|
|
for s in bootscripts/lfs/init.d/* \
|
|
bootscripts/lfs/sysconfig/* \
|
|
bootscripts/lfs/lib/services/* \
|
|
bootscripts/lfs/sbin/*
|
|
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';
|
|
[ $s == 'bootscripts/lfs/sysconfig/udev_retry' ] && script='config-udev-retry';
|
|
|
|
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
|
|
|
|
# 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
|