ASR_BASE

Change-Id: Icf3719cc0afe3eeb3edc7fa80a2eb5199ca9dda1
diff --git a/external/subpack/libs/unixodbc/files/odbc.init b/external/subpack/libs/unixodbc/files/odbc.init
new file mode 100644
index 0000000..32ae7f8
--- /dev/null
+++ b/external/subpack/libs/unixodbc/files/odbc.init
@@ -0,0 +1,26 @@
+#!/bin/sh /etc/rc.common
+
+START=50
+
+gen_odbcinst() {
+	local inifile
+
+	echo "[ODBC]"
+	echo "Trace = off"
+	echo "TraceFile ="
+
+	for inifile in /etc/odbcinst.ini.d/*.ini; do
+		cat "$inifile"
+	done
+}
+
+start() {
+	[ ! -d /tmp/etc ] && mkdir /tmp/etc
+
+	gen_odbcinst > /tmp/etc/odbcinst.ini.new
+	chmod 0644 /tmp/etc/odbcinst.ini.new
+
+	[ -e /tmp/etc/odbcinst.ini ] && ( rm /tmp/etc/odbcinst.ini || return 1 )
+
+	mv /tmp/etc/odbcinst.ini.new /tmp/etc/odbcinst.ini
+}