summaryrefslogtreecommitdiffstats
path: root/tools/templates/core_pkg/base-nanobsd/metadir/+INSTALL
diff options
context:
space:
mode:
Diffstat (limited to 'tools/templates/core_pkg/base-nanobsd/metadir/+INSTALL')
-rw-r--r--tools/templates/core_pkg/base-nanobsd/metadir/+INSTALL59
1 files changed, 0 insertions, 59 deletions
diff --git a/tools/templates/core_pkg/base-nanobsd/metadir/+INSTALL b/tools/templates/core_pkg/base-nanobsd/metadir/+INSTALL
deleted file mode 100644
index a2d9d82..0000000
--- a/tools/templates/core_pkg/base-nanobsd/metadir/+INSTALL
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/bin/sh
-
-if [ "${2}" != "POST-INSTALL" ]; then
- exit 0
-fi
-
-if [ ! -f /usr/local/share/%%PRODUCT_NAME%%/base.txz ]; then
- echo "===> ERROR: base tarball not found!"
- exit 1
-fi
-
-echo nanobsd > /etc/platform
-
-echo "===> Removing schg flag from base files"
-
-# Cleanup schg flags
-chflags -R noschg \
- /boot \
- /bin \
- /sbin \
- /usr/bin \
- /usr/sbin \
- /libexec \
- /lib \
- /usr/lib >/dev/null 2>&1
-
-echo "===> Extracting new base tarball"
-
-# Install new base files
-tar -C / -xJPUf /usr/local/share/%%PRODUCT_NAME%%/base.txz
-
-echo "===> Removing static obsoleted files"
-
-# Set IFS to \n to deal with filenames containing spaces
-oIFS=${IFS}
-IFS="
-"
-
-PLATFORM=$(cat /etc/platform)
-
-# Process obsolete files
-if [ -f /etc/%%PRODUCT_NAME%%.obsoletedfiles ]; then
- for f in $(cat /etc/%%PRODUCT_NAME%%.obsoletedfiles); do
- if [ -n "${f}" -a -d "${f}" ]; then
- chflags -R noschg "${f}"
- rm -rf "${f}"
- elif [ -n "${f}" -a -f "${f}" ]; then
- chflags noschg "${f}"
- rm -f "${f}"
- elif [ -n "${f}" -a -L "${f}" ]; then
- rm -f "${f}"
- fi
- done
-fi
-
-# Restore IFS
-IFS=${oIFS}
-
-exit 0
OpenPOWER on IntegriCloud