Skip to content

Commit 16df5bf

Browse files
committed
Auto re-init accd on exit code 7
1 parent d31527f commit 16df5bf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

install/misc-functions.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ disable_charging() {
154154
fi
155155

156156
if $autoMode && ! not_charging; then
157-
return 7 # total failure
157+
#return 7 # total failure
158+
notif "⚠️ Exit 7; accd is re-initializing"
159+
exec $TMPDIR/accd $config --init
158160
fi
159161

160162
(set +eux; eval '${runCmdOnPause-}') || :

0 commit comments

Comments
 (0)