create /etc/config if it doesn't exist
[openwrt/svn-archive/archive.git] / 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
 
 (
 [ -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
        if [ "$(/usr/bin/head -c4 /dev/mtdblock/1 | /usr/bin/tail -c3)" = "ELF" ]; then
                # WGT634u
                echo boardtype=wgt634u