Creates /var/run/quagga and fixes permissions on it, closes #192
authorFlorian Fainelli <florian@openwrt.org>
Sun, 8 Jan 2006 23:34:17 +0000 (23:34 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sun, 8 Jan 2006 23:34:17 +0000 (23:34 +0000)
SVN-Revision: 2864

openwrt/package/quagga/ipkg/quagga.postinst

index 0bb4bdda6d2a21290f56f3f3c9e401808b3de6c9..ff83cfcae4c426ff8cff942d765301556a3b346d 100644 (file)
@@ -2,6 +2,7 @@
 
 name=quagga
 id=51
+dir=/var/run/quagga
 
 # do not change below
 # check if we are on real system
@@ -43,3 +44,6 @@ echo "ospf6d        2606/tcp" >>${IPKG_INSTROOT}/etc/services
 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