summaryrefslogtreecommitdiff
path: root/openwrt/rhctl
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt/rhctl')
-rw-r--r--openwrt/rhctl/Makefile8
-rwxr-xr-xopenwrt/rhctl/files/rhctlsh2
2 files changed, 6 insertions, 4 deletions
diff --git a/openwrt/rhctl/Makefile b/openwrt/rhctl/Makefile
index fb54b8f..dad5bd3 100644
--- a/openwrt/rhctl/Makefile
+++ b/openwrt/rhctl/Makefile
@@ -12,13 +12,13 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=rhctl
-PKG_VERSION:=0.1
-PKG_RELEASE:=2
+PKG_VERSION:=0.2
+PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://localhost/
-PKG_MD5SUM:=8d693d1d4431eeeac383d5fde17c068f
+PKG_MD5SUM:=1a6f4d51c77a3e5b56b574d4dc0d4c86
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
@@ -59,6 +59,7 @@ define Build/Compile
LDFLAGS="$(TARGET_LDFLAGS) -ldl"
$(STRIP) $(PKG_BUILD_DIR)/switchctl
$(STRIP) $(PKG_BUILD_DIR)/serialclient
+ $(STRIP) $(PKG_BUILD_DIR)/stdioclient
endef
define Package/rhctl/install
@@ -69,6 +70,7 @@ define Package/rhctl/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/switchctl $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/serialclient $(1)/usr/bin/
+ $(INSTALL_BIN) $(PKG_BUILD_DIR)/stdioclient $(1)/usr/bin/
$(INSTALL_BIN) ./files/rhctlsh $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/udev.init $(1)/etc/init.d/udev
diff --git a/openwrt/rhctl/files/rhctlsh b/openwrt/rhctl/files/rhctlsh
index 47d5873..50bcbfc 100755
--- a/openwrt/rhctl/files/rhctlsh
+++ b/openwrt/rhctl/files/rhctlsh
@@ -3,4 +3,4 @@
RUN_D=/var/run/rhctl
SOCK=$RUN_D/switchctl.sock
-/usr/bin/socat UNIX-CONNECT:$SOCK STDIO
+/usr/bin/stdioclient --command-sock $SOCK