Changeset View
Changeset View
Standalone View
Standalone View
tools/tools/nanobsd/defaults.sh
| Show First 20 Lines • Show All 532 Lines • ▼ Show 20 Lines | if [ -d usr/local/etc ] ; then | ||||
| ) | ) | ||||
| fi | fi | ||||
| # Always setup the usr/local/etc -> etc/local symlink. | # Always setup the usr/local/etc -> etc/local symlink. | ||||
| # usr/local/etc gets created by packages, but if no packages | # usr/local/etc gets created by packages, but if no packages | ||||
| # are installed by this point, but are later in the process, | # are installed by this point, but are later in the process, | ||||
| # the symlink not being here causes problems. It never hurts | # the symlink not being here causes problems. It never hurts | ||||
| # to have the symlink in error though. | # to have the symlink in error though. | ||||
| ln -s ../../etc/local usr/local/etc | ln -sf ../../etc/local usr/local/etc | ||||
| for d in var etc | for d in var etc | ||||
| do | do | ||||
| # link /$d under /conf | # link /$d under /conf | ||||
| # we use hard links so we have them both places. | # we use hard links so we have them both places. | ||||
| # the files in /$d will be hidden by the mount. | # the files in /$d will be hidden by the mount. | ||||
| mkdir -p conf/base/$d conf/default/$d | mkdir -p conf/base/$d conf/default/$d | ||||
| find $d -print | cpio ${CPIO_SYMLINK} -dumpl conf/base/ | find $d -print | cpio ${CPIO_SYMLINK} -dumpl conf/base/ | ||||
| ▲ Show 20 Lines • Show All 427 Lines • Show Last 20 Lines | |||||