service and configs
This commit is contained in:
1 parent
512281d47c
commit
f5ee81daee
5 files changed
+46
-2
No files matched your search
@@ -0,0 +1,6 @@
|
||||
[connection]
|
||||
# 0: use the default value
|
||||
# 1: don't touch existing setting
|
||||
# 2: disable powersave
|
||||
# 3: enable powersave
|
||||
wifi.powersave = 2
|
||||
@@ -0,0 +1,6 @@
|
||||
[device-mac-randomization]
|
||||
wifi.scan-rand-mac-address=yes
|
||||
|
||||
[connection-mac-randomization]
|
||||
ethernet.cloned-mac-address=random
|
||||
wifi.cloned-mac-address=random
|
||||
@@ -0,0 +1,2 @@
|
||||
[main]
|
||||
dhcp=internal
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright (c) 2008 Saleem Abdulrasool <compnerd@compnerd.org>
|
||||
# Distributed under the terms of the GNU General Purpose License v2
|
||||
# $Header: $
|
||||
|
||||
supervisor=supervise-daemon
|
||||
command=/usr/sbin/NetworkManager
|
||||
command_args_foreground="-n"
|
||||
|
||||
description="Network Manager Daemon"
|
||||
|
||||
depend() {
|
||||
need dbus
|
||||
provide net
|
||||
}
|
||||
|
||||
# vim: set ft=gentoo-init-d ts=3 sw=3 et:
|
||||
@@ -7,10 +7,18 @@ description='network management daemon'
|
||||
email='aliriza.keskin@pardus.org.tr'
|
||||
maintainer='aliriza'
|
||||
license=('GPLv3')
|
||||
source=("https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/archive/$version/NetworkManager-$version.tar.gz")
|
||||
source=("https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/archive/$version/NetworkManager-$version.tar.gz"
|
||||
"conf/30-random-mac.conf"
|
||||
"conf/networkmanager.conf"
|
||||
"conf/20-wifi-powersave.conf"
|
||||
"networkmanager.initd")
|
||||
depends=(libndp nss newt)
|
||||
makedepends=(libxslt gobject-introspection)
|
||||
md5sums=('9495b3b631194bdeb701acfe8240e073')
|
||||
md5sums=('9495b3b631194bdeb701acfe8240e073'
|
||||
'SKIP'
|
||||
'SKIP'
|
||||
'SKIP'
|
||||
'SKIP')
|
||||
group=(net.misc)
|
||||
uses=(ppp ovs)
|
||||
arch=('x86_64')
|
||||
@@ -47,5 +55,10 @@ build(){
|
||||
|
||||
package(){
|
||||
ninja -C build install
|
||||
install -D -m644 ../networkmanager.initd "${DESTDIR}"/etc/init.d/networkmanager
|
||||
install -D -m644 ../networkmanager.conf "${DESTDIR}"/etc/NetworkManager/NetworkManager.conf
|
||||
install -D -m644 ../30-random-mac.conf "${DESTDIR}"/etc/NetworkManager/conf.d/
|
||||
install -D -m644 ../20-wifi-powersave.conf "${DESTDIR}"/etc/NetworkManager/conf.d/
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user