From e8e04291a785509ce6bcf4c790d53f61e00e2939 Mon Sep 17 00:00:00 2001 From: pimpshark Date: Sat, 28 Apr 2018 13:14:00 -0700 Subject: [PATCH] [DEVOPS] usb hotplugging (#575) * alias usb hotplugging * add devmem2 installation dependency --- DevOps/frankfurter/resources/bashrc | 2 ++ DevOps/frankfurter/scripts/install/master_setup | 1 + 2 files changed, 3 insertions(+) diff --git a/DevOps/frankfurter/resources/bashrc b/DevOps/frankfurter/resources/bashrc index 68cabd5f..c438501c 100644 --- a/DevOps/frankfurter/resources/bashrc +++ b/DevOps/frankfurter/resources/bashrc @@ -125,3 +125,5 @@ alias runtime_status='systemctl status runtime.service' alias runtime_logs='sudo journalctl -u runtime.service' alias restart_net='sudo systemctl restart networking.service' alias net_status='systemctl status networking.service' +alias usb_off='devmem2 0x47401c60 b 0x00' +alias usb_on='devmem2 0x47401c60 b 0x01' diff --git a/DevOps/frankfurter/scripts/install/master_setup b/DevOps/frankfurter/scripts/install/master_setup index 9ca506db..e732198c 100755 --- a/DevOps/frankfurter/scripts/install/master_setup +++ b/DevOps/frankfurter/scripts/install/master_setup @@ -34,6 +34,7 @@ function install_apt_packages { # FIXME: small issue with `/etc/issue` needing to be replaced sudo apt install -y man-db make build-essential gcc git vim tmux htop curl zip unzip linux-headers-$(uname -r) sudo apt install -y python3 python3-dev python3-pip # Python dependencies + sudo apt install -y devmem2 sudo apt clean -y sudo apt autoremove -y }