create /etc/config if it doesn't exist
authorFelix Fietkau <nbd@openwrt.org>
Thu, 5 Jan 2006 00:54:46 +0000 (00:54 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 5 Jan 2006 00:54:46 +0000 (00:54 +0000)
SVN-Revision: 2832

openwrt/target/linux/package/base-files/files/brcm-2.6/etc/init.d/S05netconfig

index 57e6ba1a341c5df07cd4358764cfd78a7e5eaec3..f782d41c08718e3f32a8592238b669cdda115cc4 100755 (executable)
@@ -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