@@ -39,20 +39,16 @@ installdepends=(
3939 entware-rc
4040)
4141
42- installdepends_rm1=(open-remarkable-shutdown)
43- installdepends_rm1os2=(" ${installdepends_rm1[@]} " )
42+ installdepends_rm1os2=(open-remarkable-shutdown)
4443installdepends_rm1os3=(" ${installdepends_rm1[@]} " )
4544installdepends_rm1os3v22=()
4645
47- installdepends_rm2=(rm2-suspend-fix)
48- installdepends_rm2os2=(" ${installdepends_rm2[@]} " )
46+ installdepends_rm2os2=(rm2-suspend-fix)
4947installdepends_rm2os3=(" ${installdepends_rm2[@]} " )
5048installdepends_rm2os3v22=(" ${installdepends_rm2[@]} " )
5149
52- installdepends_rmpp=()
5350installdepends_rmppos3v22=(" ${installdepends_rmpp[@]} " )
5451
55- installdepends_rmppm=()
5652installdepends_rmppmos3v22=(" ${installdepends_rmppm[@]} " )
5753
5854source=(opt-usr-bin.sh)
@@ -71,27 +67,27 @@ configure() {
7167 echo " Disabling automatic update"
7268 disable-unit update-engine.service
7369 case " $arch " in
74- rmall | rmallos2 | rmallos3 | rmallos3v22)
70+ rm1 | rm2 | rmpp | rmppm | rmall | rmallos2 | rmallos3 | rmallos3v22)
7571 echo " Warning: rmall version of toltec-base should not be installed"
7672 echo " Please run opkg install --force-reinstall toltec-base"
7773 ;;
78- rm1 | rm1os2 | rm1os3 | rm1os3v22)
74+ rm1os2 | rm1os3 | rm1os3v22)
7975 if ! is-masked sys-subsystem-net-devices-usb1.device; then
8076 systemctl mask sys-subsystem-net-devices-usb1.device
8177 fi
8278 if ! is-masked busybox-ifplugd@usb1.service; then
8379 systemctl mask busybox-ifplugd@usb1.service
8480 fi
8581 ;;
86- rm2 | rm2os2 | rm2os3 | rm2os3v22)
82+ rm2os2 | rm2os3 | rm2os3v22)
8783 if is-masked sys-subsystem-net-devices-usb1.device; then
8884 systemctl unmask sys-subsystem-net-devices-usb1.device
8985 fi
9086 if is-masked busybox-ifplugd@usb1.service; then
9187 systemctl unmask busybox-ifplugd@usb1.service
9288 fi
9389 ;;
94- rmpp | rmppos3v22)
90+ rmppos3v22)
9591 if is-active etc-dropbear.mount; then
9692 systemctl stop etc-dropbear.mount
9793 fi
@@ -100,7 +96,7 @@ configure() {
10096 systemctl start etc-dropbear.mount
10197 mount -o remount,rw /
10298 ;;
103- rmppm | rmppmos3v22)
99+ rmppmos3v22)
104100 if is-active etc-dropbear.mount; then
105101 systemctl stop etc-dropbear.mount
106102 fi
@@ -114,18 +110,9 @@ configure() {
114110
115111postremove () {
116112 case " $arch " in
117- rmall | rmallos2 | rmallos3 | rmallos3v22)
118- if is-masked sys-subsystem-net-devices-usb1.device; then
119- systemctl unmask sys-subsystem-net-devices-usb1.device
120- fi
121- if is-masked busybox-ifplugd@usb1.service; then
122- systemctl unmask busybox-ifplugd@usb1.service
123- fi
124- if ! is-enabled update-engine.service; then
125- systemctl enable update-engine
126- fi
113+ rm1 | rm2 | rmpp | rmppm | rmall | rmallos2 | rmallos3 | rmallos3v22)
127114 ;;
128- rm1 | rm1os2 | rm1os3 | rm1os3v22)
115+ rm1os2 | rm1os3 | rm1os3v22)
129116 if is-masked sys-subsystem-net-devices-usb1.device; then
130117 systemctl unmask sys-subsystem-net-devices-usb1.device
131118 fi
@@ -136,7 +123,7 @@ postremove() {
136123 systemctl enable update-engine
137124 fi
138125 ;;
139- rm2 | rm2os2 | rm2os3 | rm2os3v22)
126+ rm2os2 | rm2os3 | rm2os3v22)
140127 if is-masked sys-subsystem-net-devices-usb1.device; then
141128 systemctl unmask sys-subsystem-net-devices-usb1.device
142129 fi
@@ -147,13 +134,7 @@ postremove() {
147134 systemctl enable update-engine
148135 fi
149136 ;;
150- rmpp | rmppos3v22)
151- if ! is-enabled var-volatile-etc.service; then
152- systemctl enable var-volatile-etc.service 2> /dev/null
153- fi
154- sed -i -E ' s|(/dev/root\s+/\s+auto\s+)rw(\s+)|\1ro\2|' /etc/fstab
155- ;;
156- rmppm | rmppmos3v22)
137+ rmppos3v22 | rmppmos3v22)
157138 if ! is-enabled var-volatile-etc.service; then
158139 systemctl enable var-volatile-etc.service 2> /dev/null
159140 fi
0 commit comments