mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-18 13:07:50 +00:00
23 lines
756 B
Bash
23 lines
756 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
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/\&/\&\;/g' -e 's/</\<\;/g' -e 's/>/\>\;/g' \
|
||
|
-e "s/'/\&apos\;/g" -e 's/"/\"\;/g' -e 's/\t/ /g' \
|
||
|
$s > appendices/${script}.script
|
||
|
done
|
||
|
|