From cbcd022f302adc39ecb89fba6faf72e68184c0e0 Mon Sep 17 00:00:00 2001 From: Cullum Smith Date: Fri, 2 Aug 2024 19:10:39 -0400 Subject: halfway working idm server and laptop hostclasses --- files/etc/devd/lid-close.conf.laptop | 6 ++++++ files/etc/devd/lid-close.conf.roadwarrior_laptop | 1 + files/etc/devd/thinkpad-brightness.conf.laptop | 13 +++++++++++++ files/etc/devd/thinkpad-brightness.conf.roadwarrior_laptop | 1 + files/etc/rc.local.laptop | 1 + files/etc/rc.local.roadwarrior_laptop | 1 + files/etc/ssh/ssh_config.roadwarrior_laptop | 1 + 7 files changed, 24 insertions(+) create mode 100644 files/etc/devd/lid-close.conf.laptop create mode 120000 files/etc/devd/lid-close.conf.roadwarrior_laptop create mode 100644 files/etc/devd/thinkpad-brightness.conf.laptop create mode 120000 files/etc/devd/thinkpad-brightness.conf.roadwarrior_laptop create mode 100644 files/etc/rc.local.laptop create mode 120000 files/etc/rc.local.roadwarrior_laptop create mode 120000 files/etc/ssh/ssh_config.roadwarrior_laptop (limited to 'files/etc') diff --git a/files/etc/devd/lid-close.conf.laptop b/files/etc/devd/lid-close.conf.laptop new file mode 100644 index 0000000..751c546 --- /dev/null +++ b/files/etc/devd/lid-close.conf.laptop @@ -0,0 +1,6 @@ +notify 20 { + match "system" "ACPI"; + match "subsystem" "Lid"; + match "notify" "0x00"; + action "/usr/local/libexec/lid-close"; +}; diff --git a/files/etc/devd/lid-close.conf.roadwarrior_laptop b/files/etc/devd/lid-close.conf.roadwarrior_laptop new file mode 120000 index 0000000..b6dd50e --- /dev/null +++ b/files/etc/devd/lid-close.conf.roadwarrior_laptop @@ -0,0 +1 @@ +lid-close.conf.laptop \ No newline at end of file diff --git a/files/etc/devd/thinkpad-brightness.conf.laptop b/files/etc/devd/thinkpad-brightness.conf.laptop new file mode 100644 index 0000000..24bd750 --- /dev/null +++ b/files/etc/devd/thinkpad-brightness.conf.laptop @@ -0,0 +1,13 @@ +notify 20 { +  match "system" "ACPI"; +  match "subsystem" "IBM"; +  match "notify" "0x10"; +  action "/usr/local/libexec/thinkpad-brightness up"; +}; + +notify 20 { +  match "system" "ACPI"; +  match "subsystem" "IBM"; +  match "notify" "0x11"; +  action "/usr/local/libexec/thinkpad-brightness down"; +}; diff --git a/files/etc/devd/thinkpad-brightness.conf.roadwarrior_laptop b/files/etc/devd/thinkpad-brightness.conf.roadwarrior_laptop new file mode 120000 index 0000000..77502f3 --- /dev/null +++ b/files/etc/devd/thinkpad-brightness.conf.roadwarrior_laptop @@ -0,0 +1 @@ +thinkpad-brightness.conf.laptop \ No newline at end of file diff --git a/files/etc/rc.local.laptop b/files/etc/rc.local.laptop new file mode 100644 index 0000000..d3b9958 --- /dev/null +++ b/files/etc/rc.local.laptop @@ -0,0 +1 @@ +usbconfig | awk -F: '{ print $1 }' | xargs -rtn1 -I% usbconfig -d % power_save diff --git a/files/etc/rc.local.roadwarrior_laptop b/files/etc/rc.local.roadwarrior_laptop new file mode 120000 index 0000000..e86eca1 --- /dev/null +++ b/files/etc/rc.local.roadwarrior_laptop @@ -0,0 +1 @@ +rc.local.laptop \ No newline at end of file diff --git a/files/etc/ssh/ssh_config.roadwarrior_laptop b/files/etc/ssh/ssh_config.roadwarrior_laptop new file mode 120000 index 0000000..338cdba --- /dev/null +++ b/files/etc/ssh/ssh_config.roadwarrior_laptop @@ -0,0 +1 @@ +ssh_config.no_idm \ No newline at end of file -- cgit v1.2.3