From: Felix Fietkau Date: Thu, 5 Jan 2006 00:54:46 +0000 (+0000) Subject: create /etc/config if it doesn't exist X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0bedba966f2010684cc4c0589d0743d4948734cd;p=openwrt%2Fstaging%2Fadrian.git create /etc/config if it doesn't exist SVN-Revision: 2832 --- diff --git a/openwrt/target/linux/package/base-files/files/brcm-2.6/etc/init.d/S05netconfig b/openwrt/target/linux/package/base-files/files/brcm-2.6/etc/init.d/S05netconfig index 57e6ba1a34..f782d41c08 100755 --- a/openwrt/target/linux/package/base-files/files/brcm-2.6/etc/init.d/S05netconfig +++ b/openwrt/target/linux/package/base-files/files/brcm-2.6/etc/init.d/S05netconfig @@ -2,6 +2,7 @@ [ -e /etc/config/network ] && exit 0 ( + mkdir -p /etc/config if [ "$(/usr/bin/head -c4 /dev/mtdblock/1 | /usr/bin/tail -c3)" = "ELF" ]; then # WGT634u echo boardtype=wgt634u