saving uncommitted changes in /etc prior to emerge run

This commit is contained in:
2015-02-27 01:58:55 +01:00
committed by root
commit b3cea8d893
2385 changed files with 507432 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
This is a skeleton profile directory. It contains dummy versions of all the
scripts that could be executed, and all the configuration files.

View File

@@ -0,0 +1 @@
first_profile

View File

@@ -0,0 +1 @@
This is a sample configuration file for hprofile's sample.first_profile

View File

@@ -0,0 +1 @@
This is a sample configuration file for hprofile's sample.second_profile

View File

@@ -0,0 +1,8 @@
#!/bin/bash
# This script will be called after configuration files have been switched for
# this profile. It will be given a command line argument of the name of the
# profile being applied. It may be easier to use profile-specific scripts in
# the scripts/ directory instead.
echo "Finished starting profile ${1}"

View File

@@ -0,0 +1,8 @@
#!/bin/bash
# This script will be called before configuration files have been switched for
# this profile. It will be given a command line argument of the name of the
# profile being applied. If it exits with a non-zero error code, the profile
# will not be applied and hprofile will abort.
echo "About to start profile ${1}"

View File

@@ -0,0 +1,2 @@
first_profile
second_profile

5
hprofile/profiles/sample/ptest Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
# This script should echo the name of the profile that should be used (only).
echo "first_profile"

View File

@@ -0,0 +1,5 @@
#!/bin/bash
# This script will be run when the profile named "first_profile" is started.
echo "Starting ${0%.*}"

View File

@@ -0,0 +1,5 @@
#!/bin/bash
# This script will be run when the profile named "first_profile" is stopped.
echo "Stopping ${0%.*}"

View File

@@ -0,0 +1,5 @@
#!/bin/bash
# This script will be run when the profile named "second_profile" is started.
echo "Starting ${0%.*}"

View File

@@ -0,0 +1,5 @@
#!/bin/bash
# This script will be run when the profile named "second_profile" is stopped.
echo "Stopping ${0%.*}"

7
hprofile/profiles/sample/stop Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
# This script will be called with an argument of the profile being stopped when
# hprofile -s is called, or when a new profile is applied, replacing the
# existing profile.
echo "Stopping profile ${1}"