diff --git a/openrc/fix-suspend b/openrc/fix-suspend new file mode 100755 index 0000000..1fe6d66 --- /dev/null +++ b/openrc/fix-suspend @@ -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" +} diff --git a/openrc/net.bridge b/openrc/net.bridge new file mode 100644 index 0000000..f9f1aab --- /dev/null +++ b/openrc/net.bridge @@ -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 diff --git a/openrc/net.nobridge b/openrc/net.nobridge new file mode 100644 index 0000000..4ed509d --- /dev/null +++ b/openrc/net.nobridge @@ -0,0 +1,2 @@ +#single interface with dhcp +config_enp3s0="dhcp"