From eaa099e7d69a0e0a063369c00227ec727ac6ed94 Mon Sep 17 00:00:00 2001 From: Martin Kepplinger Date: Wed, 4 Nov 2020 15:11:03 +0100 Subject: [PATCH] l5-shipme: reuse l5-poweroff-shipmode since we permanently include a script to set the battery in shipmode, see https://source.puri.sm/Librem5/librem5-base/-/merge_requests/190 use that instead of duplicating the logic. --- usr/share/librem5/l5-shipme | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/usr/share/librem5/l5-shipme b/usr/share/librem5/l5-shipme index b9fe4f5..34c61f8 100755 --- a/usr/share/librem5/l5-shipme +++ b/usr/share/librem5/l5-shipme @@ -4,16 +4,9 @@ set -e VOLATILE=(/root/.bash_history /home/purism/.bash_history) -function bat_ship_mode () -{ - i2cset -f -y 3 0x6a 0x00 0x88 - # shut off the battery with 10-15 second delay - i2cset -f -y 3 0x6a 0x09 0x6e -} - rm -f "${VOLATILE[@]}" -bat_ship_mode +/usr/lib/systemd/system-shutdown/l5-poweroff-shipmode # self destruct if run form $PATH # so the user can't hit it -- GitLab