File: reform

package info (click to toggle)
reform-tools 1.83-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,424 kB
  • sloc: sh: 3,883; ansic: 989; python: 936; makefile: 172
file content (22 lines) | stat: -rwxr-xr-x 592 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
# SPDX-License-Identifier: GPL-3.0+
# Copyright 2023-2025 Johannes Schauer Marin Rodrigues <josch@mister-muffin.de>

case $1 in prereqs) exit 0 ;; esac

# shellcheck disable=SC1091
. /scripts/functions

MACHINE=
if [ -e /etc/flash-kernel/machine ]; then
  MACHINE=$(cat /etc/flash-kernel/machine)
elif [ -e /proc/device-tree/model ]; then
  MACHINE=$(cat /proc/device-tree/model)
fi

case $MACHINE in
  "MNT Reform 2 with LS1028A Module")
    # https://source.mnt.re/reform/reform-debian-packages/-/issues/5
    dmesg -n 7 || echo "E: failed to set kernel loglevel" >&2
    ;;
esac