aboutsummaryrefslogtreecommitdiffstats
path: root/init-sh/lib.sh
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>1999-12-19 22:16:40 +0000
committerPascal Rigaux <pixel@mandriva.com>1999-12-19 22:16:40 +0000
commita5f5c3d062e4b8852ff7f43ecc2f96ed983d4970 (patch)
tree398a4f16f6de006c0bb13ff7b0f4d96c2ec8eaba /init-sh/lib.sh
parentf0d82b466910ba75d055c5b53b0493d2167c821b (diff)
downloadmsec-a5f5c3d062e4b8852ff7f43ecc2f96ed983d4970.tar
msec-a5f5c3d062e4b8852ff7f43ecc2f96ed983d4970.tar.gz
msec-a5f5c3d062e4b8852ff7f43ecc2f96ed983d4970.tar.bz2
msec-a5f5c3d062e4b8852ff7f43ecc2f96ed983d4970.tar.xz
msec-a5f5c3d062e4b8852ff7f43ecc2f96ed983d4970.zip
*** empty log message ***
Diffstat (limited to 'init-sh/lib.sh')
-rw-r--r--init-sh/lib.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/init-sh/lib.sh b/init-sh/lib.sh
index 20cfe96..f62faac 100644
--- a/init-sh/lib.sh
+++ b/init-sh/lib.sh
@@ -46,8 +46,8 @@ AddRules() {
AddBegRules() {
echo "Modifying config in ${2}..."
- export VAL=$2
- perl -pi -e '/^#/ or /^$/ or $m++ or print "$ENV{COMMENT}\n$ENV{VAL}\n\n"' $1
+ export VAL=$1
+ perl -pi -e '/^#/ or /^$/ or $m++ or print "$ENV{COMMENT}\n$ENV{VAL}\n\n"' $2
echo -e "done.\n"
}