Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
201e3b5
Error if unsupported version in toltecctl
Eeems Mar 24, 2022
d14efda
Update package
Eeems Mar 24, 2022
9faea13
Fix formatting
Eeems Mar 27, 2022
efb9543
Fix formatting
Eeems Mar 27, 2022
a90c291
Fix formatting
Eeems Mar 27, 2022
cb87ba3
Missed one
Eeems Mar 27, 2022
79f4e87
Fix force logic
Eeems Mar 27, 2022
ebe337e
Merge branch 'testing' into Eeems-patch-3
Eeems Mar 28, 2022
b302cdd
Merge branch 'testing' into Eeems-patch-3
matteodelabre Apr 2, 2022
309b202
Merge branch 'testing' into Eeems-patch-3
matteodelabre Apr 24, 2022
ae28d23
Add compatibility file and check version against this file
matteodelabre Apr 24, 2022
2a860cc
Merge branch 'testing' into Eeems-patch-3
Eeems Jul 6, 2022
7ff73f2
Merge branch 'testing' into Eeems-patch-3
Eeems Oct 1, 2022
f0da5c1
Merge branch 'testing' into Eeems-patch-3
Eeems Jan 29, 2023
2de419c
Update Compatibility
Eeems Jan 29, 2023
0d7c9f6
Merge branch 'testing' into Eeems-patch-3
Eeems Feb 12, 2023
67780ba
Merge branch 'testing' into Eeems-patch-3
Eeems May 8, 2023
53588f1
Merge branch 'testing' into Eeems-patch-3
Eeems Sep 2, 2023
c54216c
Merge branch 'testing' into Eeems-patch-3
Eeems Nov 27, 2023
9851899
Update toltec-bootstrap version number
Eeems Nov 27, 2023
9b3be3d
Remove timestamp logic
Eeems Nov 27, 2023
94d5150
Switch to using opkg compare-versions
Eeems Nov 27, 2023
dde2ccb
Fix formatting
Eeems Nov 27, 2023
cdbac7c
Fix formatting
Eeems Nov 27, 2023
96872ad
Check for minimum and maximum versions
Eeems Nov 27, 2023
be299de
Fix formatting
Eeems Nov 27, 2023
b7b42c5
Update bootstrap to check version range
Eeems Nov 27, 2023
1d41d37
Port toltecmk fixes, start adding split OS version support
Eeems Dec 3, 2023
6780441
Fix formatting
Eeems Dec 3, 2023
ea1b4dc
Add *-2.x and *-3.x arch support
Eeems Dec 3, 2023
7e55972
Update to python 3.11
Eeems Dec 3, 2023
66073e1
Force *-3.x archs to be built
Eeems Dec 3, 2023
ee3ff51
Fix requirements for 3.11
Eeems Dec 3, 2023
0de7686
Add missing black requirement
Eeems Dec 3, 2023
5601928
Add missing pylint and mypy requirements
Eeems Dec 3, 2023
25107a2
Add more missing requirements
Eeems Dec 3, 2023
5987b96
Rename 2.x and 3.x to os2 and os3 due to arch naming requirements
Eeems Dec 3, 2023
71429b2
Clean up logic for toltec-base, just in case the wrong one gets insta…
Eeems Dec 3, 2023
c0479fa
Fix formatting
Eeems Dec 3, 2023
cff82e3
Update jinja2 version
Eeems Dec 3, 2023
df2ad65
Fix mypy warnings
Eeems Dec 3, 2023
2da52d9
Formatting fix
Eeems Dec 3, 2023
efdfcfa
Fix build
Eeems Dec 3, 2023
2b938e7
format fix
Eeems Dec 3, 2023
40d9575
Add toltec-deletions
Eeems Dec 3, 2023
72c0438
Bump fuse version
Eeems Dec 3, 2023
e274b8c
Merge branch 'testing' into multi-repos
Eeems Dec 11, 2023
d2884f4
Bump ddvk-hacks version
Eeems Dec 11, 2023
f90c03c
Reset pkg rel for toltec-base
Eeems Dec 11, 2023
ac465cd
Only delete ddvk-hacks, fuse, and wireguard from 3.x
Eeems Dec 11, 2023
53dcb24
Add toltecctl status command and rebuild opkg conf on reenable
Eeems Dec 17, 2023
9c272af
Move config update location
Eeems Dec 17, 2023
11a7ca7
Merge branch 'testing' into multi-repos
Eeems Dec 17, 2023
6a72cbf
Update wireguard rel
Eeems Dec 17, 2023
a6c02cc
Change to list of supported versions
Eeems Dec 17, 2023
2b51957
Create new experimental branch upload if the experimental flag is on …
Eeems Dec 17, 2023
bd515c3
Remove extra )
Eeems Dec 17, 2023
0f1b586
Make sure all missing files are added for experimental repo
Eeems Dec 17, 2023
64255a0
Regenerate opkg config always on toltec-bootstrap upgrade
Eeems Dec 19, 2023
64db945
Make sure /home/root/.local/share/toltec exists
Eeems Dec 19, 2023
1efd4bd
Merge branch 'testing' into multi-repos
Eeems Dec 19, 2023
53bbb03
Specify --noaction when comparing versions
Eeems Dec 19, 2023
56783bd
Don't use opkg for compare-versions
Eeems Dec 19, 2023
111afb8
Fix opkg.conf generation
Eeems Dec 19, 2023
428eb07
Format fix
Eeems Dec 19, 2023
80f44d8
Add 3.x versions that will be supported
Eeems Dec 20, 2023
ec5c327
Use standalone wget if required
Eeems Dec 20, 2023
b040ed3
Fix up version check
Eeems Dec 20, 2023
b952514
Fix up boostrap/uninstall in partially broken states
Eeems Dec 20, 2023
7b968c3
Ignore lint error
Eeems Dec 20, 2023
bedd905
Bind mount not existing is not an error for removing it
Eeems Dec 20, 2023
168aaa5
Don't remove toltec-base on reenable, instead allow package to ask to…
Eeems Dec 20, 2023
5e8261e
Update all packages to use new reenable hook
Eeems Dec 20, 2023
3a72b2d
Format and lint fix
Eeems Dec 20, 2023
b0ed684
Create directories
Eeems Dec 20, 2023
b4eb3dc
Create directory for deletions
Eeems Dec 20, 2023
f56f4a1
Fix install-state check
Eeems Dec 20, 2023
289fbb7
Force local grep and move opkg conf generation
Eeems Dec 20, 2023
e7062c6
Make sure we dont get arch issues
Eeems Dec 20, 2023
1c37243
Better logging
Eeems Dec 20, 2023
419ed6e
Always reinstall toltec-base
Eeems Dec 20, 2023
8515af0
Reenable templatectl and standardize
Eeems Dec 20, 2023
e389169
Fix ddvk-hacks build
Eeems Dec 20, 2023
6d7b497
Also reinstall toltec-deletions
Eeems Dec 20, 2023
718e96a
Force arch to be correct on installed packages
Eeems Dec 20, 2023
3744567
Always install toltec-deletions
Eeems Dec 20, 2023
24367d9
Format fix
Eeems Dec 20, 2023
c4a2ea3
Lint fix
Eeems Dec 20, 2023
00f5404
Make ddvk-hacks restore smarter about OS version changes
Eeems Dec 20, 2023
53e348f
Fix up opkg status replacement
Eeems Dec 21, 2023
2c33d26
Format fix
Eeems Dec 21, 2023
d3d2a12
Don't uninstall if the extra packages requested fail to install
Eeems Dec 21, 2023
b504aca
Lint fix
Eeems Dec 21, 2023
6c4bfd8
Reinstall any package that had it's arch changed
Eeems Dec 21, 2023
7739f98
Fix lint and bootstrap issue
Eeems Dec 21, 2023
f77739c
Fix reinstall-base
Eeems Dec 21, 2023
d62c37f
Only reinstall toltec-base/deletions once
Eeems Dec 21, 2023
880dff0
Merge branch 'testing' into multi-repos
Eeems Dec 27, 2023
0e49f0d
Fix bad merge
Eeems Dec 27, 2023
788dbb7
Merge branch 'testing' into multi-repos
Eeems Jan 5, 2024
b5b7c1c
Fix build
Eeems Jan 5, 2024
355b3cf
Don't conflict with deleted packages
Eeems Jan 7, 2024
3583cc0
Merge branch 'testing' into multi-repos
Eeems Jan 13, 2024
20992b7
Merge branch 'testing' into multi-repos
Eeems Jan 13, 2024
f9cc90d
Merge branch 'testing' into multi-repos
Eeems Jan 15, 2024
09c5f87
Merge branch 'testing' into multi-repos
Eeems Jan 22, 2024
7c9187a
Merge branch 'testing' into multi-repos
Eeems Jan 31, 2024
cd496ea
Merge branch 'testing' into multi-repos
Eeems Feb 4, 2024
f0081ff
Merge branch 'testing' into multi-repos
Eeems Mar 22, 2024
f737410
Force rebuild
Eeems May 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ runs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.11'
- name: Cache Python environment
uses: actions/cache@v3
id: cache-python
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/sync-repository/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ runs:
echo '${{ inputs.ssh-key }}' > private/id_rsa
echo '${{ inputs.ssh-known-hosts }}' > private/known_hosts
chmod 600 private/*
rsync --archive --verbose --compress --delete \
rsync --archive --verbose --compress --delete --hard-links \
-e "ssh -p ${{ inputs.ssh-port }} -i private/id_rsa -o UserKnownHostsFile=private/known_hosts" \
'${{ inputs.local-path }}' \
'${{ inputs.remote-path }}'
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,15 @@ jobs:
with:
name: repo
path: build/repo
- name: Build packages for experimental
if: ${{ contains(github.event.pull_request.labels.*.name, 'experimental') }}
run: make repo FLAGS='--remote-repo https://toltec-dev.org/${{ github.base_ref }}'
- name: Sync packages with the remote repository
if: ${{ contains(github.event.pull_request.labels.*.name, 'experimental') }}
uses: ./.github/actions/sync-repository
with:
local-path: build/repo/
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
ssh-known-hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
ssh-port: ${{ secrets.SSH_PORT }}
remote-path: ${{ secrets.REMOTE_SSH }}:/srv/toltec/experimental
16 changes: 11 additions & 5 deletions docs/package.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,17 @@ You can also declare custom variables to reduce repetition but make sure to pref
The list of devices that are compatible with this package.
The following values are accepted:

Name | Meaning
--------|-------------------------------------------------------------------------
`rmall` | Packages which work on all reMarkable devices without modification.
`rm1` | Packages requiring reMarkable 1-specific resources or compilation flags.
`rm2` | Packages requiring reMarkable 2-specific resources or compilation flags.
Name | Meaning
------------|-------------------------------------------------------------------------
`rmall` | Packages which work on all reMarkable devices without modification.
`rm1` | Packages requiring reMarkable 1-specific resources or compilation flags.
`rm2` | Packages requiring reMarkable 2-specific resources or compilation flags.
`rmallos2` | Packages which work on all reMarkable devices without modification, but only on the 2.x series of operating system.
`rm1os2` | Packages requiring reMarkable 1-specific resources or compilation flags, but only on the 2.x series of operating system.
`rm2os2` | Packages requiring reMarkable 2-specific resources or compilation flags, but only on the 2.x series of operating system.
`rmallos3` | Packages which work on all reMarkable devices without modification, but only on the 3.x series of operating system.
`rm1os3` | Packages requiring reMarkable 1-specific resources or compilation flags, but only on the 3.x series of operating system.
`rm2os3` | Packages requiring reMarkable 2-specific resources or compilation flags, but only on the 3.x series of operating system.

For example, use `archs=(rm1)` for a package that only works on reMarkable 1, or `archs=(rm1 rm2)` for a package that works both on reMarkable 1 and reMarkable 2 but needs different dependencies or compilation flags for each of those.

Expand Down
70 changes: 70 additions & 0 deletions package/Compatibility
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
rm1=2.6.1.71
rm1=2.6.2.75
rm1=2.7.0.9
rm1=2.7.0.30
rm1=2.7.0.36
rm1=2.7.0.44
rm1=2.7.0.51
rm1=2.8.0.81
rm1=2.8.0.86
rm1=2.8.0.98
rm1=2.9.0.153
rm1=2.9.0.204
rm1=2.9.0.210
rm1=2.9.1.217
rm1=2.9.1.236
rm1=2.10.2.356
rm1=2.10.3.379
rm1=2.11.0.442
rm1=2.12.1.527
rm1=2.12.2.573
rm1=2.12.3.606
rm1=2.13.0.758
rm1=2.14.0.861
rm1=2.14.1.866
rm1=2.14.3.958
rm1=2.14.3.977
rm1=2.14.3.1005
rm1=2.14.3.1047
rm1=2.15.0.1067
rm1=2.15.1.1189
rm1=3.0.4.1305
rm1=3.2.2.1581
rm1=3.2.3.1595
rm1=3.3.2.1666

rm2=2.6.1.71
rm2=2.6.2.75
rm2=2.7.0.9
rm2=2.7.0.30
rm2=2.7.0.36
rm2=2.7.0.44
rm2=2.7.0.51
rm2=2.7.1.53
rm2=2.8.0.81
rm2=2.8.0.86
rm2=2.8.0.98
rm2=2.9.0.153
rm2=2.9.0.204
rm2=2.9.0.210
rm2=2.9.1.217
rm2=2.9.1.236
rm2=2.10.2.356
rm2=2.10.3.379
rm2=2.11.0.442
rm2=2.12.1.527
rm2=2.12.2.573
rm2=2.12.3.606
rm2=2.13.0.758
rm2=2.14.0.861
rm2=2.14.1.866
rm2=2.14.3.958
rm2=2.14.3.977
rm2=2.14.3.1005
rm2=2.14.3.1047
rm2=2.15.0.1067
rm2=2.15.1.1189
rm2=3.0.4.1305
rm2=3.2.2.1581
rm2=3.2.3.1595
rm2=3.3.2.1666
112 changes: 65 additions & 47 deletions package/ddvk-hacks/package
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# Copyright (c) 2021 The Toltec Contributors
# SPDX-License-Identifier: MIT

archs=(rm1 rm2)
archs=(rm1os2 rm2os2)
pkgnames=(ddvk-hacks)
pkgdesc="Enhance Xochitl with additional features"
url=https://github.com/ddvk/remarkable-hacks
pkgver=39.01-2
pkgver=39.01-4
timestamp=2022-11-09T18:31:51Z
section="readers"
maintainer="Mattéo Delabre <[email protected]>"
Expand All @@ -20,55 +20,58 @@ sha256sums=(d3b1413bb9219804581afab598e7f5308233e7467d64e8084e67aae7346beaba)
_patches_dir="/opt/share/ddvk-hacks"
_xochitl_path="/usr/bin/xochitl"
_work_dir="/home/root/.local/share/ddvk-hacks"
_info_path="$_work_dir/xochitl.info"
_backup_path="$_work_dir/xochitl.backup"
_old_backup_path="$_backup_path.old"
_patched_path="$_work_dir/xochitl.patched"

package() {
if [[ $arch = rm1 ]]; then
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/26171_rm1/patch_19.1.02
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/26275_rm1/patch_20.1.03
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/27051_rm1/patch_21.1.04
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/28098_rm1/patch_23.1.02
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/291236_rm1/patch_24.1.02
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2100324_rm1/patch_25.1.03
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2102356_rm1/patch_27.1.03
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2103379_rm1/patch_28.1.02
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2110442_rm1/patch_29.1.02
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2121527_rm1/patch_30.1.08
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2122573_rm1/patch_31.1.01
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2123606_rm1/patch_32.1.03
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2140861_rm1/patch_34.1.01
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2141866_rm1/patch_35.1.01
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2143977_rm1/patch_36.1.01
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/21431047_rm1/patch_37.1.01
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/21501067_rm1/patch_38.1.03
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/21511189_rm1/patch_39.1.01
elif [[ $arch = rm2 ]]; then
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/26171_rm2/patch_19.2.02
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/26275_rm2/patch_20.2.03
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/27051_rm2/patch_21.2.05
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/27153_rm2/patch_22.2.01
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/28098_rm2/patch_23.2.02
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/291217_rm2/patch_24.2.04
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2100324_rm2/patch_25.2.01
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2101332_rm2/patch_26.2.02
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2102356_rm2/patch_27.2.05
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2103379_rm2/patch_28.2.02
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2110442_rm2/patch_29.2.02
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2121527_rm2/patch_30.2.07
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2122573_rm2/patch_31.2.01
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2123606_rm2/patch_32.2.02
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2130758_rm2/patch_33.2.01
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2140861_rm2/patch_34.2.01
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2141866_rm2/patch_35.2.01
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/2143977_rm2/patch_36.2.01
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/21431047_rm2/patch_37.2.01
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/21501067_rm2/patch_38.2.03
install -D -m 644 -t "$pkgdir$_patches_dir" "$srcdir"/patches/21511189_rm2/patch_39.2.01
mkdir -p "$pkgdir"/opt/share/toltec/reenable.d
touch "$pkgdir"/opt/share/toltec/reenable.d/"$pkgname"
if [[ $arch = rm1os2 ]]; then
patches_dir="${pkgdir}${_patches_dir}"
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/26171_rm1/patch_19.1.02
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/26275_rm1/patch_20.1.03
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/27051_rm1/patch_21.1.04
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/28098_rm1/patch_23.1.02
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/291236_rm1/patch_24.1.02
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2100324_rm1/patch_25.1.03
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2102356_rm1/patch_27.1.03
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2103379_rm1/patch_28.1.02
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2110442_rm1/patch_29.1.02
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2121527_rm1/patch_30.1.08
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2122573_rm1/patch_31.1.01
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2123606_rm1/patch_32.1.03
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2140861_rm1/patch_34.1.01
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2141866_rm1/patch_35.1.01
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2143977_rm1/patch_36.1.01
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/21431047_rm1/patch_37.1.01
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/21501067_rm1/patch_38.1.03
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/21511189_rm1/patch_39.1.01
elif [[ $arch = rm2os2 ]]; then
patches_dir="${pkgdir}${_patches_dir}"
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/26171_rm2/patch_19.2.02
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/26275_rm2/patch_20.2.03
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/27051_rm2/patch_21.2.05
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/27153_rm2/patch_22.2.01
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/28098_rm2/patch_23.2.02
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/291217_rm2/patch_24.2.04
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2100324_rm2/patch_25.2.01
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2101332_rm2/patch_26.2.02
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2102356_rm2/patch_27.2.05
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2103379_rm2/patch_28.2.02
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2110442_rm2/patch_29.2.02
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2121527_rm2/patch_30.2.07
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2122573_rm2/patch_31.2.01
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2123606_rm2/patch_32.2.02
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2130758_rm2/patch_33.2.01
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2140861_rm2/patch_34.2.01
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2141866_rm2/patch_35.2.01
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/2143977_rm2/patch_36.2.01
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/21431047_rm2/patch_37.2.01
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/21501067_rm2/patch_38.2.03
install -D -m 644 -t "$patches_dir" "$srcdir"/patches/21511189_rm2/patch_39.2.01
fi
touch "$srcdir"/emptyfile
install -D -m 666 -t "$pkgdir"/usr/share/toltec/reenable.d/ddvk-hacks "$srcdir"/emptyfile
}

configure() {
Expand All @@ -78,7 +81,7 @@ configure() {
local device
local original_hash
local xochitl_version
if [[ $arch = rm1 ]]; then
if [[ $arch = rm1os2 ]]; then
device="reMarkable 1"
case "$build_date" in
"20221026103859")
Expand Down Expand Up @@ -179,7 +182,7 @@ configure() {
exit 1
;;
esac
elif [[ $arch = rm2 ]]; then
elif [[ $arch = rm2os2 ]]; then
device="reMarkable 2"
case "$build_date" in
"20221026104022")
Expand Down Expand Up @@ -328,11 +331,25 @@ configure() {
cp "$_patched_path" "$_xochitl_path"
rm -rf /home/root/.cache/remarkable/xochitl/qmlcache/*

# shellcheck source=../toltec-bootstrap/toltecctl
source /home/root/.local/bin/toltecctl
get-release-version > "$_info_path"

echo "Please restart Xochitl to use the patches"
echo
}

_restore() {
# shellcheck source=../toltec-bootstrap/toltecctl
source /home/root/.local/bin/toltecctl

if ! [ -f "$_info_path" ] \
|| [[ "$(get-release-version)" != "$(cat "$_info_path")" ]] \
|| compare-versions "$(get-release-version)" "3.0"; then
echo "Skipping restore, as you are on a newer OS version"
return
fi

echo
echo "Restoring the original Xochitl binary"

Expand All @@ -342,6 +359,7 @@ _restore() {
else
cp "$_backup_path" "$_xochitl_path"
rm -rf /home/root/.cache/remarkable/xochitl/qmlcache/*
rm "$_info_path"
fi

echo
Expand Down
12 changes: 6 additions & 6 deletions package/fuse/package
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# Copyright (c) 2020 The Toltec Contributors
# SPDX-License-Identifier: MIT

archs=(rm1 rm2)
archs=(rm1os2 rm2os2)
pkgnames=(fuse)
pkgdesc="FUSE (Filesystem in Userspace) Kernel Module"
url=https://github.com/libfuse/libfuse
pkgver=1.0.0-4
pkgver=1.0.0-5
timestamp=2021-04-06T22:16Z
section=kernel
maintainer="plan5 <[email protected]>"
Expand Down Expand Up @@ -51,14 +51,14 @@ build() {
}

package() {
if [[ $arch = rm1 ]]; then
if [[ $arch = rm1os2 ]]; then
mkdir -p "$pkgdir/lib/modules"
cp -r "$srcdir/pkg"/* "$pkgdir/lib/modules"
fi
}

configure() {
if [[ $arch = rm1 ]]; then
if [[ $arch = rm1os2 ]]; then
# Regenerate /lib/modules/[ver]/modules.devname to request the
# creation of /dev/fuse used for on-demand loading of fuse
depmod -a
Expand All @@ -72,7 +72,7 @@ configure() {
}

postremove() {
if [[ $arch = rm1 ]]; then
if [[ $arch = rm1os2 ]]; then
echo 'Fuse (Kernel Module) has been removed.'
echo 'The kernel module will remain loaded until you reboot, or you can attempt'
echo 'to manually remove it by running "modprobe -r fuse".'
Expand All @@ -81,7 +81,7 @@ postremove() {
}

postupgrade() {
if [[ $arch = rm1 ]]; then
if [[ $arch = rm1os2 ]]; then
echo 'Fuse (Kernel Module) has been upgraded.'
echo 'The old kernel module will remain loaded until you reboot, or you can'
echo 'attempt to manually remove it by running "modprobe -r fuse".'
Expand Down
6 changes: 3 additions & 3 deletions package/kernelctl/package
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
pkgnames=(kernelctl)
pkgdesc="Manage aftermarket kernels"
url=https://toltec-dev.org/
pkgver=0.1-6
pkgver=0.1-7
timestamp=2022-11-12T00:00Z
section="utils"
maintainer="Salvatore Stella <[email protected]>"
Expand All @@ -19,10 +19,10 @@ sha256sums=(
)

package() {
touch "$srcdir"/emptyfile
install -D -m 744 -t "$pkgdir"/opt/bin "$srcdir"/kernelctl
install -d "$pkgdir"/opt/usr/share/kernelctl
install -D -m 666 -t "$pkgdir"/usr/share/toltec/reenable.d/kernelctl "$srcdir"/emptyfile
mkdir -p "$pkgdir"/opt/share/toltec/reenable.d
touch "$pkgdir"/opt/share/toltec/reenable.d/"$pkgname"
}

configure() {
Expand Down
Loading