diff --git a/tools/tools/nanobsd/customize.sh b/tools/tools/nanobsd/customize.sh
index 5aa79741dbba..092464ad8cb4 100644
--- a/tools/tools/nanobsd/customize.sh
+++ b/tools/tools/nanobsd/customize.sh
@@ -61,7 +61,7 @@ installlocalfiles() {
 }
 
 movelocaletc() {
-  if [ ! -d ${WD}/etc/local ]; then
+  if [ ! -d ${WD}/etc/local -a -d ${WD}/usr/local/etc ]; then
     mv ${WD}/usr/local/etc ${WD}/etc/local
     ln -s ../../etc/local ${WD}/usr/local/etc
   fi