saving uncommitted changes in /etc prior to emerge run

This commit is contained in:
root 2015-08-18 21:18:34 +02:00 committad av Hans Wurst
förälder 7d2a953f30
incheckning 8684198dab
3 ändrade filer med 135 tillägg och 0 borttagningar

Visa fil

@ -0,0 +1,25 @@
#!/sbin/runscript
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
pidfile="/var/run/nvidia-persistenced/nvidia-persistenced.pid"
start() {
if ! [ "${NVPD_USER}x" = x ]; then
ebegin "Starting nvidia-persistenced for ${NVPD_USER}"
NVPD_USER_ARG="--user ${NVPD_USER}"
else
ebegin "Starting nvidia-persistenced"
fi
start-stop-daemon --start --quiet --pidfile ${pidfile} \
--background --exec /opt/bin/nvidia-persistenced \
-- ${NVPD_USER_ARG} ${ARGS}
eend $?
}
stop() {
ebegin "Stopping nvidia-persistenced"
start-stop-daemon --stop --quiet --pidfile ${pidfile}
eend $?
}

25
init.d/._cfg0000_nvidia-smi Executable file
Visa fil

@ -0,0 +1,25 @@
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
pidfile="/run/nvidia-smi.pid"
depend() {
after modules
}
start() {
ebegin "Starting NVIDIA System Management Interface"
rm -f ${pidfile}
start-stop-daemon --start --quiet --pidfile ${pidfile} \
--make-pidfile --background --exec /opt/bin/nvidia-smi -- \
-q -l 300
eend $?
}
stop() {
ebegin "Stopping NVIDIA System Management Interface"
start-stop-daemon --stop --quiet --pidfile ${pidfile}
eend $?
}

Visa fil

@ -0,0 +1,85 @@
# Application profiles for the NVIDIA Linux graphics driver, version 343.36
# Last modified: Mon Dec 1 15:53:39 PST 2014
# These profiles were provided by NVIDIA and should not be modified. If you
# wish to change the defaults provided here, you can override them by creating
# custom rules in /etc/nvidia/nvidia-application-profiles-rc (which will apply
# system-wide) or, for a given user, $HOME/.nv/nvidia-application-profiles-rc
# (which will apply to that particular user). See the "APPLICATION PROFILE
# SEARCH PATH" section of the NVIDIA Linux Graphics Driver README for more
# information.
{
"profiles" : [
{
"name" : "NonConformantBlitFramebufferScissor",
"settings" : [ "GLConformantBlitFramebufferScissor", false ]
},
{
"name" : "CL1C",
"settings" : [ "0x528ab3", 1 ]
},
{
"name" : "FA0",
"settings" : [ "10572898", 0 ]
},
{
"name" : "ExactGLESVersion",
"settings" : [ "ForceRequestedESVersion", 1 ]
},
{
"name" : "IgnoreGLSLExtensionRequirements",
"settings" : [ "GLIgnoreGLSLExtReqs", true ]
},
{
"name" : "No GSYNC",
"settings" : [ "GLGSYNCAllowed", false ]
}
],
"rules" : [
{
"pattern" : {
"feature" : "dso",
"matches" : "libcogl.so"
},
"profile" : "NonConformantBlitFramebufferScissor"
},
{
"pattern" : {
"feature" : "dso",
"matches" : "libMaya.so"
},
"profile" : "CL1C"
},
{ "pattern" : "xsi", "profile" : "CL1C" },
{ "pattern" : "HoudiniFX", "profile" : "CL1C" },
{ "pattern" : "katana", "profile" : "CL1C" },
{ "pattern" : "Autodesk Mudbox 2014 64-bit", "profile" : "CL1C" },
{ "pattern" : "octane", "profile" : "CL1C" },
{ "pattern" : "Fusion64_6.4", "profile" : "CL1C" },
{ "pattern" : "Nuke7.0", "profile" : "CL1C" },
{ "pattern" : "vray.exe", "profile" : "CL1C" },
{ "pattern" : "vray.bin", "profile" : "CL1C" },
{ "pattern" : "kwin_gles", "profile" : "FA0" },
{ "pattern" : "kwin_gles", "profile" : "ExactGLESVersion" },
{
"pattern" : [
{ "feature" : "procname", "matches" : "heaven_x86"},
{ "op" : "not", "sub" : { "feature" : "findfile", "matches" : "browser_x86" } }
],
"profile" : "IgnoreGLSLExtensionRequirements"
},
{
"pattern" : [
{ "feature" : "procname", "matches" : "heaven_x64"},
{ "op" : "not", "sub" : { "feature" : "findfile", "matches" : "browser_x64" } }
],
"profile" : "IgnoreGLSLExtensionRequirements"
},
{ "pattern" : { "feature" : "procname", "matches" : "cinnamon" }, "profile" : "No GSYNC" },
{ "pattern" : { "feature" : "procname", "matches" : "compiz" }, "profile" : "No GSYNC" },
{ "pattern" : { "feature" : "procname", "matches" : "enlightenment" }, "profile" : "No GSYNC" },
{ "pattern" : { "feature" : "procname", "matches" : "gnome-shell" }, "profile" : "No GSYNC" },
{ "pattern" : { "feature" : "procname", "matches" : "kwin" }, "profile" : "No GSYNC" },
{ "pattern" : { "feature" : "procname", "matches" : "muffin" }, "profile" : "No GSYNC" },
{ "pattern" : { "feature" : "dso", "matches" : "libmutter.so" }, "profile" : "No GSYNC" }
]
}