-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
if [[ $EUID -ne 0 ]]; then | ||
echo "This script must be run as root" | ||
exit 1 | ||
fi | ||
|
||
sudo snap connect rosbot-xl:raw-usb | ||
sudo snap connect rosbot-xl:hardware-observe | ||
sudo snap connect rosbot-xl:joystick | ||
sudo snap connect rosbot-xl:shm-plug rosbot-xl:shm-slot | ||
sudo snap connect rosbot-xl:shutdown | ||
|
||
sudo rosbot-xl.restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash -e | ||
|
||
source $SNAP/usr/bin/utils.sh | ||
|
||
log "Restart ${SNAP_NAME}.daemon service" | ||
snapctl restart --enable ${SNAP_NAME}.daemon 2>&1 || true | ||
|
||
log "Restart ${SNAP_NAME}.joy service" | ||
snapctl restart --enable ${SNAP_NAME}.joy 2>&1 || true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters