Upgrade bluez5_37 :Merge the code from private
[platform/upstream/bluez.git] / packaging / obex.sh
1 #!/bin/sh
2 # This script has to be launched by systemd obex service.
3 # It was separated from the systemd service to check
4 # the presence of obex root directory. If the directory
5 # does not exist, then create it.
6 if [ ! -z `ps ax | grep -v grep | grep obexd` ];
7 then return
8 fi
9
10 eval $(tzplatform-get TZ_USER_CONTENT);
11
12 if [ ! -d $TZ_USER_CONTENT ];
13 then mkdir -p $TZ_USER_CONTENT;
14 fi
15
16 exec /lib/bluetooth/obexd -d --noplugin=syncevolution,pcsuite,irmc --symlinks -r $TZ_USER_CONTENT;
17