From 8254bd327f8c99dcdb77520993615b32c8c0c180 Mon Sep 17 00:00:00 2001 From: Kei Okada Date: Tue, 17 Oct 2023 17:38:37 +0900 Subject: [PATCH] install.sh: we need to add /sbin to PATH to use ifconfig --- jsk_unitree_robot/cross/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsk_unitree_robot/cross/install.sh b/jsk_unitree_robot/cross/install.sh index 03d3d64a28..a1f852dc03 100755 --- a/jsk_unitree_robot/cross/install.sh +++ b/jsk_unitree_robot/cross/install.sh @@ -123,7 +123,7 @@ function copy_data () { # enable Internet with USB LTE module if [[ "${hostname}" == "192.168.123.161" ]]; then - sshpass -p $PASS ssh -t ${user}@${hostname} "source /opt/jsk/User/user_setup.bash; sudo cp -f \$(rospack find jsk_unitree_startup)/config/dhcpcd.conf /etc/dhcpcd.conf" + sshpass -p $PASS ssh -t ${user}@${hostname} "export PATH=\$PATH:/sbin; source /opt/jsk/User/user_setup.bash; sudo cp -f \$(rospack find jsk_unitree_startup)/config/dhcpcd.conf /etc/dhcpcd.conf" sshpass -p $PASS ssh -t ${user}@${hostname} "sudo systemctl restart dhcpcd" fi set +x