Not use sysvinit script to start/stop sdbd. 98/5498/1 accepted/tizen/20130705.112554 submit/tizen/20130705.055234
authorJunfeng Dong <junfeng.dong@intel.com>
Thu, 4 Jul 2013 09:18:46 +0000 (17:18 +0800)
committerJunfeng Dong <junfeng.dong@intel.com>
Thu, 4 Jul 2013 09:18:46 +0000 (17:18 +0800)
Change-Id: I98896ec64196b85b61ab940c43ae1317fb7e8ec9
Signed-off-by: Junfeng Dong <junfeng.dong@intel.com>
direct_set_debug.sh
src/um_usb_connection_manager.c

index 0a930f6..e288d38 100755 (executable)
@@ -57,7 +57,7 @@ sdb_set() {
                ;;
        esac
 
-       /etc/init.d/sdbd start
+       /sbin/sdbd
        echo "SDB enabled"
 }
 
@@ -98,7 +98,7 @@ usb_unset() {
 
 sdb_unset() {
        usb_unset
-       /etc/init.d/sdbd stop
+       /bin/killall sdbd
        echo "SDB disabled"
 }
 
index 2d15306..1878d84 100644 (file)
@@ -18,8 +18,8 @@
 #include "um_usb_connection_manager.h"
 
 /* brad.t.peters@intel.com - todo - move away from sys-v init */
-#define SDBD_START            "/etc/init.d/sdbd start"
-#define SDBD_STOP             "/etc/init.d/sdbd stop"
+#define SDBD_START            "/sbin/sdbd"
+#define SDBD_STOP             "/bin/killall sdbd"
 #define SET_USB0_IP_ETHERNET  "/sbin/ifconfig usb0 192.168.129.3 up"
 #define SET_USB0_IP_TETHERING SET_USB0_IP_ETHERNET /* This IP setting can be changed */
 #define UNSET_USB0_IP         "/sbin/ifconfig usb0 down"