openvswitch: move openvswitch-common/postinst after install
authorAlexandru Ardelean <redacted>
Thu, 18 Sep 2014 13:06:23 +0000 (16:06 +0300)
committerAlexandru Ardelean <redacted>
Thu, 18 Sep 2014 14:21:57 +0000 (17:21 +0300)
Signed-off-by: Alexandru Ardelean <redacted>
net/openvswitch/Makefile

index e607d0fe70ff052d98e496e6f260357a77227d0e..c918fbcab0e7da5d53e463c673f042cd1f033248 100644 (file)
@@ -163,11 +163,6 @@ define Package/openvswitch-common/install
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/ovsdb/.libs/ovsdb-client $(1)/usr/bin/
 endef
 
-define Package/openvswitch-common/postinst
-#!/bin/sh
-[ -n "$${IPKG_INSTROOT}" ] || /etc/init.d/openvswitch enable || true
-endef
-
 define Package/openvswitch-switch/install
        $(INSTALL_DIR) $(1)/usr/bin/
        $(INSTALL_BIN) $(PKG_BUILD_DIR)/utilities/.libs/ovs-dpctl $(1)/usr/bin/
@@ -182,6 +177,11 @@ define Package/openvswitch-switch/install
        $(INSTALL_CONF) $(PKG_BUILD_DIR)/vswitchd/vswitch.ovsschema $(1)/usr/share/openvswitch/
 endef
 
+define Package/openvswitch-common/postinst
+#!/bin/sh
+[ -n "$${IPKG_INSTROOT}" ] || /etc/init.d/openvswitch enable || true
+endef
+
 $(eval $(call BuildPackage,openvswitch-ipsec))
 $(eval $(call BuildPackage,openvswitch-common))
 $(eval $(call BuildPackage,openvswitch-switch))
git clone https://git.99rst.org/PROJECT