diff --git a/archive-imagefiles/scripts/ushare.conf b/archive-imagefiles/scripts/ushare.conf index 9893e68b..fd61b603 100644 --- a/archive-imagefiles/scripts/ushare.conf +++ b/archive-imagefiles/scripts/ushare.conf @@ -2,7 +2,7 @@ # Configuration file for uShare # uShare UPnP Friendly Name (default is 'uShare'). -USHARE_NAME=coolstream +USHARE_NAME=%(BOXTYPE)-%(BOXMODEL) # Interface to listen to (default is eth0). # Ex : USHARE_IFACE=eth1 diff --git a/make/system-tools.mk b/make/system-tools.mk index a9307fb5..7d42a545 100644 --- a/make/system-tools.mk +++ b/make/system-tools.mk @@ -309,6 +309,7 @@ $(D)/ushare: $(ARCHIVE)/ushare-$(USHARE_VER).tar.bz2 $(D)/libupnp | $(TARGET_DIR $(MAKE); \ $(MAKE) install; \ install -D -m 0644 $(IMAGEFILES)/scripts/ushare.conf $(TARGET_DIR)/etc/ushare.conf + sed -i 's|%(BOXTYPE)|$(BOXTYPE)|; s|%(BOXMODEL)|$(BOXMODEL)|' $(TARGET_DIR)/etc/ushare.conf install -D -m 0755 $(IMAGEFILES)/scripts/ushare.init $(TARGET_DIR)/etc/init.d/ushare ln -sf ushare $(TARGET_DIR)/etc/init.d/S99ushare ln -sf ushare $(TARGET_DIR)/etc/init.d/K01ushare