summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshingil.kang <shingil.kang@samsung.com>2014-07-22 16:03:17 +0900
committershingil.kang <shingil.kang@samsung.com>2014-07-22 16:03:17 +0900
commitf131427a7dee53ae453e52cb1fe988d54be160fc (patch)
treeb34ebb58e5677d285f78c434cb230ce0e61da7d7
parent9fce0e04fc976e0b6a69fc8cddf37e6779f88be0 (diff)
downloadsdb-f131427a7dee53ae453e52cb1fe988d54be160fc.tar.gz
sdb-f131427a7dee53ae453e52cb1fe988d54be160fc.tar.bz2
sdb-f131427a7dee53ae453e52cb1fe988d54be160fc.zip
SDB: Added symbolic link to libudev library when installing sdb
Change-Id: Id1c5817892734906b7db09d91c5f451414b39728 Signed-off-by: shingil.kang <shingil.kang@samsung.com>
-rwxr-xr-xpackage/sdb.install.linux17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/sdb.install.linux b/package/sdb.install.linux
index 6deb1ef..bf75e1b 100755
--- a/package/sdb.install.linux
+++ b/package/sdb.install.linux
@@ -7,6 +7,7 @@ SDB_AC_DST_PATH=${SDB_SETTING_PATH}/${SDB_AC_NAME}
BASH_RC=~/.bashrc
ENABLE_SDB_COMPLETION="# Enable programmable sdb completion features.\nif [ -f ~/.sdb/.sdb-completion.bash ]; then\n source ~/.sdb/.sdb-completion.bash\nfi"
+# autocomplete setting
rm -rf ${SDB_SETTING_PATH}
mkdir -p ${SDB_SETTING_PATH}
mv -f ${SDB_AC_SRC_PATH} ${SDB_AC_DST_PATH}
@@ -19,4 +20,20 @@ else
echo -e $SDB_ENABLE_COMPLETION >> "${BASH_RC}"
fi
+# link to libudev.so.1
+UDEV_LIB_VER_0=libudev.so.0
+UDEV_LIB_VER_1=libudev.so.1
+UDEV_PATHS=(
+ "/lib/x86_64-linux-gnu" # Ubuntu 64bit
+ "/lib/i386-linux-gnu" # Ubuntu 32bit
+)
+for i in "${UDEV_PATHS[@]}"
+do
+ if [ -f $i/$UDEV_LIB_VER_1 ]
+ then
+ ${TSUDO} ln -sf $i/$UDEV_LIB_VER_1 $i/$UDEV_LIB_VER_0
+ break
+ fi
+done
+
exit 0