Process pfSense.obsoletedfiles on nanobsd. Spotted by phil-davis

This commit is contained in:
Renato Botelho 2016-01-07 10:49:45 -02:00
parent baa6804a3a
commit 301d868673
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ IFS="
PLATFORM=$(cat /etc/platform)
# Process obsolete files
if [ "${PLATFORM}" != "nanobsd" -a -f /etc/%%PRODUCT_NAME%%.obsoletedfiles ]; then
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}"

View File

@ -37,7 +37,7 @@ IFS="
PLATFORM=$(cat /etc/platform)
# Process obsolete files
if [ "${PLATFORM}" != "nanobsd" -a -f /etc/%%PRODUCT_NAME%%.obsoletedfiles ]; then
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}"