mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Process pfSense.obsoletedfiles on nanobsd. Spotted by phil-davis
This commit is contained in:
parent
baa6804a3a
commit
301d868673
@ -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}"
|
||||
|
||||
@ -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}"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user