Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto-admin: more changes for aarch64 #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions Scripts/auto-detect-laptops
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pause()

case $(auto-ostype) in
FreeBSD)
if dmidecode | grep -iq macbook; then
if dmidecode 2> /dev/null | grep -iq macbook; then
printf "$0: MacBook\n"
# https://wiki.freebsd.org/AppleMacbook
auto-set-conf-var atp_load '"YES"' /boot/loader.conf $0
Expand Down Expand Up @@ -66,9 +66,9 @@ Section "InputClass"
EndSection
EOM
chmod 644 /etc/X11/xorg.conf.d/macbook-xkb.conf
elif dmidecode | grep -iq thinkpad; then
elif dmidecode 2> /dev/null | grep -iq thinkpad; then
printf "$0: IBM/Lenovo ThinkPad\n"
elif dmidecode | grep -iq "Product name: Satellite"; then
elif dmidecode 2> /dev/null | grep -iq "Product name: Satellite"; then
printf "$0: Toshiba Satellite\n"
fi
;;
Expand Down
3 changes: 3 additions & 0 deletions Scripts/auto-ports-checkout
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ usage()

: ${PORTSDIR:=/usr/ports}
export PORTSDIR
if [ -e $PORTSDIR ]; then
mkdir -p $PORTSDIR || exit 1
fi

case $(auto-ostype) in
FreeBSD)
Expand Down
5 changes: 5 additions & 0 deletions Scripts/auto-set-lid-switch-mode
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/bin/sh -e

if [ -z "$(sysctl hw.acpi 2> /dev/null || true)" ]; then
printf "$0: ACPI not supported on this architecture.\n"
exit 1
fi

case $(auto-ostype) in
FreeBSD)
Expand Down