summarylogtreecommitdiffstats
path: root/bin.patch
blob: 6eb1a973ce7606854049dafc149e865b419be254 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
diff --git a/telldus-core/service/CMakeLists.txt b/telldus-core/service/CMakeLists.txt
index 595d551..541477e 100644
--- a/telldus-core/service/CMakeLists.txt
+++ b/telldus-core/service/CMakeLists.txt
@@ -254,7 +254,7 @@ IF (UNIX)
 ENDIF (UNIX)
 
 IF (UNIX AND NOT APPLE)
-	INSTALL(TARGETS ${telldus-service_TARGET} RUNTIME DESTINATION sbin)
+	INSTALL(TARGETS ${telldus-service_TARGET} RUNTIME DESTINATION bin)
 	INSTALL(FILES tellstick.conf
 		DESTINATION ${SYSCONF_INSTALL_DIR}
 	)
diff --git a/telldus-core/tdadmin/CMakeLists.txt b/telldus-core/tdadmin/CMakeLists.txt
index 7c72b26..58793c6 100644
--- a/telldus-core/tdadmin/CMakeLists.txt
+++ b/telldus-core/tdadmin/CMakeLists.txt
@@ -56,7 +56,7 @@ IF (UNIX)
 	ENDIF (GENERATE_MAN)
 ENDIF (UNIX)
 
-INSTALL(TARGETS tdadmin RUNTIME DESTINATION sbin)
+INSTALL(TARGETS tdadmin RUNTIME DESTINATION bin)
 
 IF (UNIX AND NOT APPLE)
 	SET(UDEV_RULES_DIR	"/etc/udev/rules.d" CACHE PATH "The directory where udev store its rules" )
diff --git a/telldus-core/tdadmin/udev.sh b/telldus-core/tdadmin/udev.sh
index 3b935d7..074c7dc 100755
--- a/telldus-core/tdadmin/udev.sh
+++ b/telldus-core/tdadmin/udev.sh
@@ -2,8 +2,8 @@
 
 if [ "${ID_VENDOR_ID}" = "1781" ]; then
 	if [ "${ACTION}" = "add" ]; then
-		@CMAKE_INSTALL_PREFIX@/sbin/tdadmin controller connect --pid=${ID_MODEL_ID} --vid=${ID_VENDOR_ID} --serial=${ID_SERIAL_SHORT}
+		@CMAKE_INSTALL_PREFIX@/bin/tdadmin controller connect --pid=${ID_MODEL_ID} --vid=${ID_VENDOR_ID} --serial=${ID_SERIAL_SHORT}
 	elif [ "${ACTION}" = "remove" ]; then
-		@CMAKE_INSTALL_PREFIX@/sbin/tdadmin controller disconnect --pid=${ID_MODEL_ID} --vid=${ID_VENDOR_ID} --serial=${ID_SERIAL_SHORT}
+		@CMAKE_INSTALL_PREFIX@/bin/tdadmin controller disconnect --pid=${ID_MODEL_ID} --vid=${ID_VENDOR_ID} --serial=${ID_SERIAL_SHORT}
 	fi
 fi