diff --git a/packages/sysutils/busybox/init.d/04_userconfig b/packages/sysutils/busybox/init.d/04_userconfig index 5ad727d68e..a9dc70dd55 100644 --- a/packages/sysutils/busybox/init.d/04_userconfig +++ b/packages/sysutils/busybox/init.d/04_userconfig @@ -33,9 +33,13 @@ if [ -d /usr/config ]; then mkdir -p /storage/.config/$dir done - for file in `find . -type f`; do - if [ ! -f /storage/.config/$file ]; then - cp $file /storage/.config/$file + for config in `find . -type f -name "*.conf"`; do + if [ ! -f /storage/.config/$config ]; then + cp $config /storage/.config/$config fi done + + for sample in `find . -type f -name "*.sample"`; do + cp $sample /storage/.config/$sample + done fi