summaryrefslogtreecommitdiffstats
path: root/avahi-sharp/gencfg.sh
diff options
context:
space:
mode:
Diffstat (limited to 'avahi-sharp/gencfg.sh')
-rwxr-xr-xavahi-sharp/gencfg.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/avahi-sharp/gencfg.sh b/avahi-sharp/gencfg.sh
new file mode 100755
index 0000000..db15ff5
--- /dev/null
+++ b/avahi-sharp/gencfg.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+. $1
+client_dlname=$dlname
+. $2
+common_dlname=$dlname
+
+exec sed -e "s,@CLIENT_DLNAME\@,${client_dlname},g" \
+ -e "s,@COMMON_DLNAME\@,${common_dlname},g"