diff --git a/libuavcan_drivers/linux/CMakeLists.txt b/libuavcan_drivers/linux/CMakeLists.txt index 52779a2fbf..ef61149fe8 100644 --- a/libuavcan_drivers/linux/CMakeLists.txt +++ b/libuavcan_drivers/linux/CMakeLists.txt @@ -11,6 +11,13 @@ project(libuavcan_linux) # install(DIRECTORY include/uavcan_linux DESTINATION include) +# +# Scripts +# +install(DIRECTORY scripts/ + USE_SOURCE_PERMISSIONS + DESTINATION bin) + # # System dependecies # diff --git a/libuavcan_drivers/linux/scripts/slcan_init b/libuavcan_drivers/linux/scripts/uavcan_add_slcan similarity index 97% rename from libuavcan_drivers/linux/scripts/slcan_init rename to libuavcan_drivers/linux/scripts/uavcan_add_slcan index 05ccd158f6..d5d1137aa2 100755 --- a/libuavcan_drivers/linux/scripts/slcan_init +++ b/libuavcan_drivers/linux/scripts/uavcan_add_slcan @@ -23,7 +23,7 @@ Options: 8 - 1 Mbps (UAVCAN recommended, default) Example: - $0 /dev/ttyUSB3 /dev/ttyUSB0 -s4 /dev/ttyACM0 + `basename $0` /dev/ttyUSB3 /dev/ttyUSB0 -s4 /dev/ttyACM0 The example above initializes: /dev/ttyUSB3 --> slcan0 @ 1Mbps /dev/ttyUSB0 --> slcan1 @ 1Mbps diff --git a/libuavcan_drivers/linux/scripts/vcan_init b/libuavcan_drivers/linux/scripts/uavcan_add_vcan similarity index 100% rename from libuavcan_drivers/linux/scripts/vcan_init rename to libuavcan_drivers/linux/scripts/uavcan_add_vcan