webinterface-onboot icon indicating copy to clipboard operation
webinterface-onboot copied to clipboard

Syntax Error Issue in Version 3.18

Open Lednerb opened this issue 7 months ago • 2 comments

Hello and thanks for your work!

After updating my remarkable to version 3.18 (Device Encryption Support) I get the following error in the apply-hack step:

root@reMarkable:~# /home/root/.local/bin/webinterface-onboot apply-hack -y
/home/root/.local/bin/webinterface-onboot: line 134: 0% / 1024: syntax error: operand expected (error token is "/ 1024")

So far I could not figure out the main cause for this.


Edit:

So far I did the following before the installation:

  1. Factory reset
  2. Installation of webinterface-wifi (without any issues)
  3. No further changes to the system applied

Lednerb avatar Apr 03 '25 09:04 Lednerb

The issue comes from the encrypted filesystem output:

root@reMarkable:~# df /home
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/encrypted
                       6836972     13460   6454924   0% /home

In case the filesystem is encrpted, it should be:

df /home | tail -n1 | awk '{print $3}' (print $3 instead of print $4)

I will prepare a fix now...

Lednerb avatar Apr 03 '25 10:04 Lednerb

PR is sent. By applying the changes to /home/root/.local/bin/webinterface-onboot and using it with apply-hack I can confirm that the installation was successful and after a reboot of the device, everything works as expected.

Lednerb avatar Apr 03 '25 10:04 Lednerb