Skip to content

Commit 8d78ff2

Browse files
committed
toltec-base: disable [email protected]
1 parent 6ac4d9d commit 8d78ff2

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

package/toltec-base/package

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,21 @@ configure() {
3131
/opt/etc/profile
3232
echo "Disabling automatic update"
3333
disable-unit update-engine.service
34-
if [[ "$arch" == "rm1" ]] && ! is-masked sys-subsystem-net-devices-usb1.device; then
34+
if [[ "$arch" == "rm1" ]]; then
3535
echo "Disabling usb1 network device to avoid long boots"
36-
systemctl mask sys-subsystem-net-devices-usb1.device
37-
elif [[ "$arch" == "rm2" ]] && is-masked sys-subsystem-net-devices-usb1.device; then
36+
! is-masked sys-subsystem-net-devices-usb1.device && systemctl mask sys-subsystem-net-devices-usb1.device
37+
! is-masked [email protected] && systemctl mask [email protected]
38+
elif [[ "$arch" == "rm2" ]]; then
3839
echo "Enabling usb1 network device to ensure usb SSH works"
39-
systemctl unmask sys-subsystem-net-devices-usb1.device
40+
is-masked sys-subsystem-net-devices-usb1.device && systemctl unmask sys-subsystem-net-devices-usb1.device
41+
is-masked [email protected] && systemctl unmask [email protected]
4042
fi
4143
}
4244

4345
postremove() {
4446
if is-masked sys-subsystem-net-devices-usb1.device; then
4547
systemctl unmask sys-subsystem-net-devices-usb1.device
48+
systemctl unmask [email protected]
4649
fi
4750
if ! is-enabled "update-engine.service"; then
4851
systemctl enable update-engine

0 commit comments

Comments
 (0)