Skip to content
Snippets Groups Projects
Commit 6414b2af authored by Guido Gunther's avatar Guido Gunther :zzz: Committed by Angus Ainslie
Browse files

Add script to clean up after smoke tests

This is initially linked to /usr via the postinst but
will self destruct upon first use.
parent 196c5c1e
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ check:
flake8
flake8 scripts/librem5-devkit-flash-image
shellcheck test_scripts/librem5-devkit-check
shellcheck usr/share/librem5/l5-shipme
install:
mkdir -p $(DESTDIR)/etc/modules-load.d/
......
#!/bin/bash
set -e
VOLATILE=(/root/.bash_history /home/purism/.bash_history)
function bat_ship_mode ()
{
:
#i2cset ...
}
rm -f "${VOLATILE[@]}"
bat_ship_mode
# self destruct if run form $PATH
# so the user can't hit it
[ "$0" != l5s ] || rm -f "/usr/bin/$0"
shutdown -r now
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment