saving uncommitted changes in /etc prior to emerge run
This commit is contained in:
2
hprofile/profiles/sample/README
Normal file
2
hprofile/profiles/sample/README
Normal 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.
|
||||
1
hprofile/profiles/sample/default
Normal file
1
hprofile/profiles/sample/default
Normal file
@@ -0,0 +1 @@
|
||||
first_profile
|
||||
@@ -0,0 +1 @@
|
||||
This is a sample configuration file for hprofile's sample.first_profile
|
||||
@@ -0,0 +1 @@
|
||||
This is a sample configuration file for hprofile's sample.second_profile
|
||||
8
hprofile/profiles/sample/post-start
Executable file
8
hprofile/profiles/sample/post-start
Executable 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}"
|
||||
8
hprofile/profiles/sample/pre-start
Executable file
8
hprofile/profiles/sample/pre-start
Executable 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}"
|
||||
2
hprofile/profiles/sample/profiles
Normal file
2
hprofile/profiles/sample/profiles
Normal file
@@ -0,0 +1,2 @@
|
||||
first_profile
|
||||
second_profile
|
||||
5
hprofile/profiles/sample/ptest
Executable file
5
hprofile/profiles/sample/ptest
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This script should echo the name of the profile that should be used (only).
|
||||
|
||||
echo "first_profile"
|
||||
5
hprofile/profiles/sample/scripts/first_profile.start
Executable file
5
hprofile/profiles/sample/scripts/first_profile.start
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This script will be run when the profile named "first_profile" is started.
|
||||
|
||||
echo "Starting ${0%.*}"
|
||||
5
hprofile/profiles/sample/scripts/first_profile.stop
Executable file
5
hprofile/profiles/sample/scripts/first_profile.stop
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This script will be run when the profile named "first_profile" is stopped.
|
||||
|
||||
echo "Stopping ${0%.*}"
|
||||
5
hprofile/profiles/sample/scripts/second_profile.start
Executable file
5
hprofile/profiles/sample/scripts/second_profile.start
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This script will be run when the profile named "second_profile" is started.
|
||||
|
||||
echo "Starting ${0%.*}"
|
||||
5
hprofile/profiles/sample/scripts/second_profile.stop
Executable file
5
hprofile/profiles/sample/scripts/second_profile.stop
Executable 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
7
hprofile/profiles/sample/stop
Executable 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}"
|
||||
Reference in New Issue
Block a user