|
|
|
@ -18,16 +18,8 @@ main_sf() {
|
|
|
|
|
cd $root/ |
|
|
|
|
|
|
|
|
|
echo "Creating various etc/* files ..." |
|
|
|
|
for x in $( cd $confdir ; echo etc_*.txt ) ; do |
|
|
|
|
y="${x%.txt}" ; z="/" |
|
|
|
|
if [ -f "${y//_/$z}" ] |
|
|
|
|
then |
|
|
|
|
echo "Found old ${y//_/$z} (don't overwrite)." |
|
|
|
|
touch "${y//_/$z}" |
|
|
|
|
else |
|
|
|
|
cp -v "$confdir/$x" "${y//_/$z}" |
|
|
|
|
fi |
|
|
|
|
done |
|
|
|
|
overlay_apply -n "$confdir/overlay.d" |
|
|
|
|
|
|
|
|
|
[ -f etc/HOSTNAME ] || echo localhost > etc/HOSTNAME |
|
|
|
|
chmod +x etc/initscript etc/rc.d/rc |
|
|
|
|
|
|
|
|
|