Changeset View
Changeset View
Standalone View
Standalone View
libexec/rc/rc.initdiskless
Show First 20 Lines • Show All 362 Lines • ▼ Show 20 Lines | |||||
# so if the cpio archive is present, it prevents the files from dir/ | # so if the cpio archive is present, it prevents the files from dir/ | ||||
# from being copied. | # from being copied. | ||||
for i in ${templates} ; do | for i in ${templates} ; do | ||||
for j in /conf/$i/* ; do | for j in /conf/$i/* ; do | ||||
subdir=${j##*/} | subdir=${j##*/} | ||||
if [ -d $j -a ! -f $j.cpio.gz ]; then | if [ -d $j -a ! -f $j.cpio.gz ]; then | ||||
create_md $subdir | create_md $subdir | ||||
cp -Rp $j/ /$subdir | cp -Rp $j/. /$subdir | ||||
fi | fi | ||||
done | done | ||||
for j in /conf/$i/*.cpio.gz ; do | for j in /conf/$i/*.cpio.gz ; do | ||||
subdir=${j%*.cpio.gz} | subdir=${j%*.cpio.gz} | ||||
subdir=${subdir##*/} | subdir=${subdir##*/} | ||||
if [ -f $j ]; then | if [ -f $j ]; then | ||||
create_md $subdir | create_md $subdir | ||||
echo "Loading /$subdir from cpio archive $j" | echo "Loading /$subdir from cpio archive $j" | ||||
Show All 25 Lines |