From 8e7223ed5491bc6d6d129cf82b243a02722d73dd Mon Sep 17 00:00:00 2001 From: CoolerVoid Date: Fri, 3 Jun 2022 00:23:07 -0300 Subject: [PATCH] Create manage.sh --- module_generator/scripts/manage.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 module_generator/scripts/manage.sh diff --git a/module_generator/scripts/manage.sh b/module_generator/scripts/manage.sh new file mode 100644 index 0000000..464697e --- /dev/null +++ b/module_generator/scripts/manage.sh @@ -0,0 +1,14 @@ +# Use this script to hidden the action to send keys to Casper-fs. +# Using this script, you cannot see the history command. +# save this script in /usr/bin/ +# COntribution by Paul Wiston - contact: paul.w3st0n@googlemail.com +echo -n "Enter device: " +read DEVICE + +echo -n "Enter key: " +stty -echo +read KEY +stty echo + +sudo su - root -c "echo $KEY > $DEVICE" +echo