added openrc services
This commit is contained in:
parent
b2765dc3fa
commit
777cb0b6d6
|
@ -0,0 +1,22 @@
|
||||||
|
#!/sbin/openrc-run
|
||||||
|
name="fix-suspend"
|
||||||
|
description="fixes instant wakeups from suspend by disabling PTXH in /proc/acpi/wakeup"
|
||||||
|
command="/bin/bash"
|
||||||
|
command_args="-c 'echo PTXH > /proc/acpi/wakeup'"
|
||||||
|
pidfile="/var/run/${RC_SVCNAME}.pid"
|
||||||
|
|
||||||
|
start(){
|
||||||
|
ebegin "Starting fix-suspend"
|
||||||
|
/bin/bash -c 'echo PTXH > /proc/acpi/wakeup'
|
||||||
|
eend "${?}"
|
||||||
|
}
|
||||||
|
|
||||||
|
stop(){
|
||||||
|
ebegin "Stopping fix-suspend"
|
||||||
|
/bin/bash -c 'echo PTXH > /proc/acpi/wakeup'
|
||||||
|
eend "${?}"
|
||||||
|
}
|
||||||
|
|
||||||
|
status(){
|
||||||
|
einfo "this service is not a background process, it runs as you start and stop it"
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
#single NIC bridge
|
||||||
|
config_enp3s0="null"
|
||||||
|
config_tap0="null"
|
||||||
|
config_tap1="null"
|
||||||
|
config_tap2="null"
|
||||||
|
config_tap3="null"
|
||||||
|
tuntap_tap0="tap"
|
||||||
|
tuntap_tap1="tap"
|
||||||
|
tuntap_tap2="tap"
|
||||||
|
tuntap_tap3="tap"
|
||||||
|
bridge_br0="enp3s0 tap0 tap1 tap2 tap3"
|
||||||
|
rc_net_br0_need="net.enp3s0 net.tap0 net.tap1 net.tap2 net.tap3"
|
||||||
|
# Bridge dynamic config
|
||||||
|
config_br0="dhcp"
|
||||||
|
|
||||||
|
bridge_forward_delay_br0=0
|
||||||
|
bridge_hello_time_br0=1000
|
|
@ -0,0 +1,2 @@
|
||||||
|
#single interface with dhcp
|
||||||
|
config_enp3s0="dhcp"
|
Loading…
Reference in New Issue