File prun-Add-user-config.patch of Package prun-ohpc
prun: Add user config
Common config file: /etc/prunrc
User config file: $HOME/.prunrc
--- prun
+++ prun.suse
@@ -11,7 +11,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-CONFIG=/etc/sysconfig/prun
+CONFIG=/etc/prunrc
+LOCALCONFIG=$HOME/.prunrc
MODE=native
LOGLEVEL=2 # 0=error,1=warn,2=info,3=debug
@@ -33,7 +34,9 @@
function parse_config_file () {
- if [ -e $CONFIG ];then
+ if [ -e $LOCALCONFIG ];then
+ source $CONFIG 2> /dev/null
+ elif [ -e $CONFIG ];then
source $CONFIG 2> /dev/null
fi
}