reExecute

May 6, 2026 ยท View on GitHub

Persistent startup execution for reMarkable Paper Pro Move.

reExecute uses the persistent MDM agent config to run a user-editable hook from /home/root after boot, without relying on systemd unit files surviving reboot.

How it works

The MDM agent reads:

/home/root/.local/share/remarkable/mdm/mdm-agent.toml

reExecute changes:

user_auth_cli = "user-authenticator-cli"

to:

user_auth_cli = "/home/root/bin/reexecute-user-authenticator-cli"

The wrapper logs the call, starts your hook in the background, then immediately forwards to the real /usr/bin/user-authenticator-cli.

Install

Connect the tablet over USB.

chmod +x install.sh
./install.sh

The installer prompts for the root SSH password and connects to:

root@10.11.99.1

Edit your startup hook

On the tablet:

vi /home/root/bin/reexecute-hook.sh

That file persists across reboot.

Logs

cat /home/root/reexecute-wrapper.log
cat /home/root/reexecute-hook.log

Uninstall

Restore the backup config:

cp /home/root/.local/share/remarkable/mdm/mdm-agent.toml.reexecute.bak \
   /home/root/.local/share/remarkable/mdm/mdm-agent.toml

systemctl restart mdm-agent.service

Warning

This is a hack. Keep your hook non-blocking. Do not put long-running foreground commands in it.