blob: 83c7457e093deca1d38a2623457e02d34039fdd8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
# Set USB power savings
usbconfig | awk -F: '{ print $1 }' | xargs -rtn1 -I% usbconfig -d % power_save ||:
install_file /etc/rc.local
# Create devd rule for lid close.
install_file -m 0555 /usr/local/libexec/lid-close
install_file -m 0644 /etc/devd/lid-close.conf
service devd restart
# Configure wireless card.
sysrc -v \
create_args_wlan0='country US regdomain FCC' \
ifconfig_wlan0="WPA DHCP powersave"
|