Avoid mkdir in postinst, doing it in the Makefile
authorFlorian Fainelli <florian@openwrt.org>
Sun, 5 Feb 2006 15:38:04 +0000 (15:38 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sun, 5 Feb 2006 15:38:04 +0000 (15:38 +0000)
SVN-Revision: 3138

openwrt/package/quagga/Makefile
openwrt/package/quagga/ipkg/quagga.postinst

index e08688c62e055e665c7e16151366f6879ec0eb71..a1cc1226814671801a667dd883dc29db8b910c70 100644 (file)
@@ -81,6 +81,7 @@ $(IPKG_QUAGGA):
        install -d -m0755 $(IDIR_QUAGGA)/etc/init.d/
        install -m0755 ./files/quagga.init $(IDIR_QUAGGA)/etc/init.d/quagga
        ln -sf quagga $(IDIR_QUAGGA)/etc/init.d/S49quagga
+       install -m0755 $(IDIR_QUAGGA)/var/run/quagga
        $(RSTRIP) $(IDIR_QUAGGA)
        $(IPKG_BUILD) $(IDIR_QUAGGA) $(PACKAGE_DIR)
 
index ff83cfcae4c426ff8cff942d765301556a3b346d..90ffe61e282b3261a20eef71e285c6669ea08b44 100644 (file)
@@ -45,5 +45,4 @@ echo "ospfapi       2607/tcp" >>${IPKG_INSTROOT}/etc/services
 echo "isisd         2608/tcp" >>${IPKG_INSTROOT}/etc/services
 fi
 
-mkdir -p $dir
 chown -R $name:$name $dir