Browse Source

sysfiles: changed to use overlay_apply()

user/amery/runit-rework
Alejandro Mery 16 years ago committed by Alejandro Mery
parent
commit
9fcca7fa9b
  1. 0
      base/sysfiles/overlay.d/etc_conf_NOTE.txt
  2. 0
      base/sysfiles/overlay.d/etc_conf_console.txt
  3. 0
      base/sysfiles/overlay.d/etc_conf_devfs.txt
  4. 0
      base/sysfiles/overlay.d/etc_conf_hardware.txt
  5. 0
      base/sysfiles/overlay.d/etc_conf_kbd.txt
  6. 0
      base/sysfiles/overlay.d/etc_conf_kernel.txt
  7. 0
      base/sysfiles/overlay.d/etc_conf_pci.txt
  8. 0
      base/sysfiles/overlay.d/etc_conf_profile.txt
  9. 0
      base/sysfiles/overlay.d/etc_conf_usb.txt
  10. 0
      base/sysfiles/overlay.d/etc_dircolors.txt
  11. 0
      base/sysfiles/overlay.d/etc_filesystems.txt
  12. 0
      base/sysfiles/overlay.d/etc_fstab.txt
  13. 0
      base/sysfiles/overlay.d/etc_group.txt
  14. 0
      base/sysfiles/overlay.d/etc_gshadow.txt
  15. 0
      base/sysfiles/overlay.d/etc_host.conf.txt
  16. 0
      base/sysfiles/overlay.d/etc_hosts.txt
  17. 0
      base/sysfiles/overlay.d/etc_init.d_functions-ansi.in.txt
  18. 0
      base/sysfiles/overlay.d/etc_init.d_functions.in.txt
  19. 0
      base/sysfiles/overlay.d/etc_initscript.txt
  20. 0
      base/sysfiles/overlay.d/etc_inputrc.txt
  21. 0
      base/sysfiles/overlay.d/etc_networks.txt
  22. 0
      base/sysfiles/overlay.d/etc_passwd.txt
  23. 0
      base/sysfiles/overlay.d/etc_profile.txt
  24. 0
      base/sysfiles/overlay.d/etc_rc.d_rc.txt
  25. 0
      base/sysfiles/overlay.d/etc_resolv.conf.txt
  26. 0
      base/sysfiles/overlay.d/etc_sakmsg.txt
  27. 0
      base/sysfiles/overlay.d/etc_shadow.txt
  28. 0
      base/sysfiles/overlay.d/etc_shells.txt
  29. 0
      base/sysfiles/overlay.d/etc_sysctl.conf.txt
  30. 12
      base/sysfiles/sysfiles.conf

0
base/sysfiles/etc_conf_NOTE.txt → base/sysfiles/overlay.d/etc_conf_NOTE.txt

0
base/sysfiles/etc_conf_console.txt → base/sysfiles/overlay.d/etc_conf_console.txt

0
base/sysfiles/etc_conf_devfs.txt → base/sysfiles/overlay.d/etc_conf_devfs.txt

0
base/sysfiles/etc_conf_hardware.txt → base/sysfiles/overlay.d/etc_conf_hardware.txt

0
base/sysfiles/etc_conf_kbd.txt → base/sysfiles/overlay.d/etc_conf_kbd.txt

0
base/sysfiles/etc_conf_kernel.txt → base/sysfiles/overlay.d/etc_conf_kernel.txt

0
base/sysfiles/etc_conf_pci.txt → base/sysfiles/overlay.d/etc_conf_pci.txt

0
base/sysfiles/etc_conf_profile.txt → base/sysfiles/overlay.d/etc_conf_profile.txt

0
base/sysfiles/etc_conf_usb.txt → base/sysfiles/overlay.d/etc_conf_usb.txt

0
base/sysfiles/etc_dircolors.txt → base/sysfiles/overlay.d/etc_dircolors.txt

0
base/sysfiles/etc_filesystems.txt → base/sysfiles/overlay.d/etc_filesystems.txt

0
base/sysfiles/etc_fstab.txt → base/sysfiles/overlay.d/etc_fstab.txt

0
base/sysfiles/etc_group.txt → base/sysfiles/overlay.d/etc_group.txt

0
base/sysfiles/etc_gshadow.txt → base/sysfiles/overlay.d/etc_gshadow.txt

0
base/sysfiles/etc_host.conf.txt → base/sysfiles/overlay.d/etc_host.conf.txt

0
base/sysfiles/etc_hosts.txt → base/sysfiles/overlay.d/etc_hosts.txt

0
base/sysfiles/etc_init.d_functions-ansi.in.txt → base/sysfiles/overlay.d/etc_init.d_functions-ansi.in.txt

0
base/sysfiles/etc_init.d_functions.in.txt → base/sysfiles/overlay.d/etc_init.d_functions.in.txt

0
base/sysfiles/etc_initscript.txt → base/sysfiles/overlay.d/etc_initscript.txt

0
base/sysfiles/etc_inputrc.txt → base/sysfiles/overlay.d/etc_inputrc.txt

0
base/sysfiles/etc_networks.txt → base/sysfiles/overlay.d/etc_networks.txt

0
base/sysfiles/etc_passwd.txt → base/sysfiles/overlay.d/etc_passwd.txt

0
base/sysfiles/etc_profile.txt → base/sysfiles/overlay.d/etc_profile.txt

0
base/sysfiles/etc_rc.d_rc.txt → base/sysfiles/overlay.d/etc_rc.d_rc.txt

0
base/sysfiles/etc_resolv.conf.txt → base/sysfiles/overlay.d/etc_resolv.conf.txt

0
base/sysfiles/etc_sakmsg.txt → base/sysfiles/overlay.d/etc_sakmsg.txt

0
base/sysfiles/etc_shadow.txt → base/sysfiles/overlay.d/etc_shadow.txt

0
base/sysfiles/etc_shells.txt → base/sysfiles/overlay.d/etc_shells.txt

0
base/sysfiles/etc_sysctl.conf.txt → base/sysfiles/overlay.d/etc_sysctl.conf.txt

12
base/sysfiles/sysfiles.conf

@ -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

Loading…
Cancel
Save