aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdfly-update44
1 files changed, 24 insertions, 20 deletions
diff --git a/dfly-update b/dfly-update
index 5f872dd..48a8a15 100755
--- a/dfly-update
+++ b/dfly-update
@@ -49,6 +49,29 @@ MNT_DIR="/mnt/${NAME}"
# Backup directory
BACK_DIR="/var/backups/${NAME}"
+# List of files/directories to be installed
+INSTALL_LIST='
+ COPYRIGHT
+ bin
+ boot
+ compat
+ lib
+ libexec
+ rescue
+ sbin
+ usr/Makefile
+ usr/bin
+ usr/games
+ usr/include
+ usr/lib
+ usr/libdata
+ usr/libexec
+ usr/sbin
+ usr/share
+ var/msgs
+ var/yp
+'
+
# Ignored files to be kept from overriding by the upgrade.
FILES_IGNORE='
/boot/loader.conf
@@ -224,26 +247,7 @@ install_system() {
done
echo " => Installing kernel and world ..."
- for item in \
- COPYRIGHT \
- bin \
- boot \
- compat \
- lib \
- libexec \
- rescue \
- sbin \
- usr/Makefile \
- usr/bin \
- usr/games \
- usr/include \
- usr/lib \
- usr/libdata \
- usr/libexec \
- usr/sbin \
- usr/share \
- var/msgs \
- var/yp; do
+ for item in ${INSTALL_LIST}; do
echo -n " * Installing: ${item} ... "
cpdup -o -u ${MNT_DIR}/${item} /${item} || exit ${EC_CPDUP}
echo "ok"