This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# /usr/local/bin/acpi_brightness | |
# Credit: https://www.davidschlachter.com/misc/freebsd-acpi_video-thinkpad-display-brightness | |
CURRENT_LEVEL=`/sbin/sysctl -n hw.acpi.video.lcd0.brightness` | |
UP=$1 | |
if [ $UP == 1 ]; then | |
for i in 1 2 4 6 9 15 24 36 51 69 90 100; do | |
if [ "$CURRENT_LEVEL" -lt "$i" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Speed up boot slightly | |
sysrc background_dhclient=YES | |
sysrc -f /boot/loader.conf autoboot_delay=3 | |
# Quieten boot messages | |
sysrc rc_startmsgs=NO | |
sysrc -f /boot/loader.conf boot_mute=YES | |
sysrc -f /boot/loader.conf beastie_disable=YES |