aboutsummaryrefslogtreecommitdiff
path: root/scripts/hostname
diff options
context:
space:
mode:
authorCullum Smith <cullum@sacredheartsc.com>2024-08-02 19:10:39 -0400
committerCullum Smith <cullum@sacredheartsc.com>2024-08-02 19:10:39 -0400
commitcbcd022f302adc39ecb89fba6faf72e68184c0e0 (patch)
treea5ab154e08fa3c4fa110b09d3475736c66840c8b /scripts/hostname
parentceb339370d7a0cc4a83fe54103a650dfb3f72261 (diff)
downloadinfrastructure-cbcd022f302adc39ecb89fba6faf72e68184c0e0.tar.gz
halfway working idm server and laptop hostclasses
Diffstat (limited to 'scripts/hostname')
-rw-r--r--scripts/hostname/rlaptop121
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/hostname/rlaptop1 b/scripts/hostname/rlaptop1
new file mode 100644
index 0000000..874c9dd
--- /dev/null
+++ b/scripts/hostname/rlaptop1
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+set_loader_conf \
+ if_iwm_load=YES \
+ iwm8265fw_load=YES
+
+sysrc -v wlans_iwm0='wlan0'
+
+# On this laptop, kern.vt.suspendswitch=1 (the default) breaks graphics
+# acceleration after resuming from sleep.
+set_sysctl \
+ dev.acpi_ibm.0.handlerevents='0x10 0x11' \
+ kern.vt.suspendswitch=0
+
+install_file -m 0555 /usr/local/libexec/thinkpad-brightness
+install_file -m 0644 /etc/devd/thinkpad-brightness.conf
+
+service devd restart
+
+pw usershow cullum || \
+ pw useradd cullum -c "Cullum Smith" -d /home/cullum -G wheel,operator,video -s /bin/sh -m -M 700