diff options
author | Florin Grad <florin@mandriva.com> | 2001-09-29 14:05:22 +0000 |
---|---|---|
committer | Florin Grad <florin@mandriva.com> | 2001-09-29 14:05:22 +0000 |
commit | a1893a044ece18d427fe87c553ea0303b46afedb (patch) | |
tree | 053e3282d8ff20555f9f490ffe271fa685340010 /init-sh | |
parent | 48ad4123b497be62ad452b7e079d67b3b81a25ed (diff) | |
download | msec-a1893a044ece18d427fe87c553ea0303b46afedb.tar msec-a1893a044ece18d427fe87c553ea0303b46afedb.tar.gz msec-a1893a044ece18d427fe87c553ea0303b46afedb.tar.bz2 msec-a1893a044ece18d427fe87c553ea0303b46afedb.tar.xz msec-a1893a044ece18d427fe87c553ea0303b46afedb.zip |
add \n
Diffstat (limited to 'init-sh')
-rwxr-xr-x | init-sh/level0.sh | 24 | ||||
-rwxr-xr-x | init-sh/level1.sh | 27 | ||||
-rwxr-xr-x | init-sh/level2.sh | 26 | ||||
-rwxr-xr-x | init-sh/level3.sh | 25 | ||||
-rwxr-xr-x | init-sh/level4.sh | 29 | ||||
-rwxr-xr-x | init-sh/level5.sh | 27 |
6 files changed, 48 insertions, 110 deletions
diff --git a/init-sh/level0.sh b/init-sh/level0.sh index ff6ff28..07c6126 100755 --- a/init-sh/level0.sh +++ b/init-sh/level0.sh @@ -72,25 +72,13 @@ AddRules "umask 022" /etc/profile.d/msec.csh echo "Adding \"non secure\" PATH variable :" -AddRules "if ! echo \${PATH} |grep -q /usr/X11R6/bin ; then" /etc/profile.d/msec.sh quiet -AddRules "\texport PATH=\$PATH:/usr/X11R6/bin" /etc/profile.d/msec.sh quiet -AddRules "fi" /etc/profile.d/msec.sh quiet -AddRules "if ! { (echo "\${PATH}" | grep -q /usr/X11R6/bin) } then" /etc/profile.d/msec.csh quiet -AddRules "\tsetenv PATH \"\${PATH}:/usr/X11R6/bin\"" /etc/profile.d/msec.csh quiet -AddRules "endif" /etc/profile.d/msec.csh quiet -AddRules "if ! echo \${PATH} |grep -q /usr/games ; then" /etc/profile.d/msec.sh quiet -AddRules "\texport PATH=\$PATH:/usr/games" /etc/profile.d/msec.sh quiet -AddRules "fi" /etc/profile.d/msec.sh quiet -AddRules "if ! { (echo "\${PATH}" | grep -q /usr/games) } then" /etc/profile.d/msec.csh quiet -AddRules "\tsetenv PATH \"\${PATH}:/usr/games\"" /etc/profile.d/msec.csh quiet -AddRules "endif" /etc/profile.d/msec.csh quiet +AddRules "if ! echo \${PATH} |grep -q /usr/X11R6/bin ; then\n\texport PATH=\$PATH:/usr/X11R6/bin\nfi" /etc/profile.d/msec.sh quiet +AddRules "if ! { (echo "\${PATH}" | grep -q /usr/X11R6/bin) } then\n\tsetenv PATH \"\${PATH}:/usr/X11R6/bin\"\nendif" /etc/profile.d/msec.csh quiet +AddRules "if ! echo \${PATH} |grep -q /usr/games ; then\n\texport PATH=\$PATH:/usr/games\nfi" /etc/profile.d/msec.sh quiet +AddRules "if ! { (echo "\${PATH}" | grep -q /usr/games) } then\n\tsetenv PATH \"\${PATH}:/usr/games\"\nendif" /etc/profile.d/msec.csh quiet -AddRules "if ! echo \${PATH} |grep -q :. ; then" /etc/profile.d/msec.sh quiet -AddRules "\texport PATH=\$PATH:." /etc/profile.d/msec.sh quiet -AddRules "fi" /etc/profile.d/msec.sh quiet -AddRules "if ! { (echo "\${PATH}" | grep -q :.) } then" /etc/profile.d/msec.csh quiet -AddRules "\tsetenv PATH \"\${PATH}:.\"" /etc/profile.d/msec.csh quiet -AddRules "endif" /etc/profile.d/msec.csh quiet +AddRules "if ! echo \${PATH} |grep -q :. ; then\n\texport PATH=\$PATH:.\nfi" /etc/profile.d/msec.sh quiet +AddRules "if ! { (echo "\${PATH}" | grep -q :.) } then\n\tsetenv PATH \"\${PATH}:.\"\nendif" /etc/profile.d/msec.csh quiet # Xserver echo "Allowing users to connect X server from everywhere :" diff --git a/init-sh/level1.sh b/init-sh/level1.sh index aa6ca1d..9f0eccc 100755 --- a/init-sh/level1.sh +++ b/init-sh/level1.sh @@ -71,25 +71,16 @@ AddRules "umask 022" /etc/profile.d/msec.sh AddRules "umask 022" /etc/profile.d/msec.csh echo "Adding \"non secure\" PATH variable :" -AddRules "if ! echo \${PATH} |grep -q /usr/X11R6/bin ; then" /etc/profile.d/msec.sh quiet -AddRules "\texport PATH=\$PATH:/usr/X11R6/bin" /etc/profile.d/msec.sh quiet -AddRules "fi" /etc/profile.d/msec.sh quiet -AddRules "if ! { (echo "\${PATH}" | grep -q /usr/X11R6/bin) } then" /etc/profile.d/msec.csh quiet -AddRules "\tsetenv PATH \"\${PATH}:/usr/X11R6/bin\"" /etc/profile.d/msec.csh quiet -AddRules "endif" /etc/profile.d/msec.csh quiet -AddRules "if ! echo \${PATH} |grep -q /usr/games ; then" /etc/profile.d/msec.sh quiet -AddRules "\texport PATH=\$PATH:/usr/games" /etc/profile.d/msec.sh quiet -AddRules "fi" /etc/profile.d/msec.sh quiet -AddRules "if ! { (echo "\${PATH}" | grep -q /usr/games) } then" /etc/profile.d/msec.csh quiet -AddRules "\tsetenv PATH \"\${PATH}:/usr/games\"" /etc/profile.d/msec.csh quiet -AddRules "endif" /etc/profile.d/msec.csh quiet +AddRules "if ! echo \${PATH} |grep -q /usr/X11R6/bin ; then\n\texport PATH=\$PATH:/usr/X11R6/bin\nfi" /etc/profile.d/msec.sh quiet +AddRules "if ! { (echo "\${PATH}" | grep -q /usr/X11R6/bin) } then\n\tsetenv PATH \"\${PATH}:/usr +/X11R6/bin\"\nendif" /etc/profile.d/msec.csh quiet +AddRules "if ! echo \${PATH} |grep -q /usr/games ; then\n\texport PATH=\$PATH:/usr/games\nfi" /et +c/profile.d/msec.sh quiet +AddRules "if ! { (echo "\${PATH}" | grep -q /usr/games) } then\n\tsetenv PATH \"\${PATH}:/usr/games\"\nendif" /etc/profile.d/msec.csh quiet -AddRules "if ! echo \${PATH} |grep -q :. ; then" /etc/profile.d/msec.sh quiet -AddRules "\texport PATH=\$PATH:." /etc/profile.d/msec.sh quiet -AddRules "fi" /etc/profile.d/msec.sh quiet -AddRules "if ! { (echo "\${PATH}" | grep -q :.) } then" /etc/profile.d/msec.csh quiet -AddRules "\tsetenv PATH \"\${PATH}:.\"" /etc/profile.d/msec.csh quiet -AddRules "endif" /etc/profile.d/msec.csh quiet +AddRules "if ! echo \${PATH} |grep -q :. ; then\n\texport PATH=\$PATH:.\nfi" /etc/profile.d/msec.sh quiet +AddRules "if ! { (echo "\${PATH}" | grep -q :.) } then\n\tsetenv PATH \"\${PATH}:.\"\nendif" /etc +/profile.d/msec.csh quiet # Xserver echo "Allowing users to connect X server from localhost :" diff --git a/init-sh/level2.sh b/init-sh/level2.sh index 9a2d9d5..6cc646c 100755 --- a/init-sh/level2.sh +++ b/init-sh/level2.sh @@ -72,25 +72,15 @@ AddRules "umask 022" /etc/profile.d/msec.sh AddRules "umask 022" /etc/profile.d/msec.csh echo "Adding \"non secure\" PATH variable :" -AddRules "if ! echo \${PATH} |grep -q /usr/X11R6/bin ; then" /etc/profile.d/msec.sh quiet -AddRules "\texport PATH=\$PATH:/usr/X11R6/bin" /etc/profile.d/msec.sh quiet -AddRules "fi" /etc/profile.d/msec.sh quiet -AddRules "if ! { (echo "\${PATH}" | grep -q /usr/X11R6/bin) } then" /etc/profile.d/msec.csh quiet -AddRules "\tsetenv PATH \"\${PATH}:/usr/X11R6/bin\"" /etc/profile.d/msec.csh quiet -AddRules "endif" /etc/profile.d/msec.csh quiet -AddRules "if ! echo \${PATH} |grep -q /usr/games ; then" /etc/profile.d/msec.sh quiet -AddRules "\texport PATH=\$PATH:/usr/games" /etc/profile.d/msec.sh quiet -AddRules "fi" /etc/profile.d/msec.sh quiet -AddRules "if ! { (echo "\${PATH}" | grep -q /usr/games) } then" /etc/profile.d/msec.csh quiet -AddRules "\tsetenv PATH \"\${PATH}:/usr/games\"" /etc/profile.d/msec.csh quiet -AddRules "endif" /etc/profile.d/msec.csh quiet +AddRules "if ! echo \${PATH} |grep -q /usr/X11R6/bin ; then\n\texport PATH=\$PATH:/usr/X11R6/bin\nfi" /etc/profile.d/msec.sh quiet +AddRules "if ! { (echo "\${PATH}" | grep -q /usr/X11R6/bin) } then\n\tsetenv PATH \"\${PATH}:/usr +/X11R6/bin\"\nendif" /etc/profile.d/msec.csh quiet +AddRules "if ! echo \${PATH} |grep -q /usr/games ; then\n\texport PATH=\$PATH:/usr/games\nfi" /etc/profile.d/msec.sh quiet +AddRules "if ! { (echo "\${PATH}" | grep -q /usr/games) } then\n\tsetenv PATH \"\${PATH}:/usr/games\"\nendif" /etc/profile.d/msec.csh quiet -AddRules "if ! echo \${PATH} |grep -q :. ; then" /etc/profile.d/msec.sh quiet -AddRules "\texport PATH=\$PATH:." /etc/profile.d/msec.sh quiet -AddRules "fi" /etc/profile.d/msec.sh quiet -AddRules "if ! { (echo "\${PATH}" | grep -q :.) } then" /etc/profile.d/msec.csh quiet -AddRules "\tsetenv PATH \"\${PATH}:.\"" /etc/profile.d/msec.csh quiet -AddRules "endif" /etc/profile.d/msec.csh quiet +AddRules "if ! echo \${PATH} |grep -q :. ; then\n\texport PATH=\$PATH:.\nfi" /etc/profile.d/msec. +sh quiet +AddRules "if ! { (echo "\${PATH}" | grep -q :.) } then\n\tsetenv PATH \"\${PATH}:.\"\nendif" /etc/profile.d/msec.csh quiet # Xserver echo "Allowing users to connect X server from localhost :" diff --git a/init-sh/level3.sh b/init-sh/level3.sh index d528b56..f7fa66e 100755 --- a/init-sh/level3.sh +++ b/init-sh/level3.sh @@ -79,25 +79,14 @@ AddRules "umask 022" /etc/profile.d/msec.sh AddRules "umask 022" /etc/profile.d/msec.csh echo "Adding \"non secure\" PATH variable :" -AddRules "if ! echo \${PATH} |grep -q /usr/X11R6/bin ; then" /etc/profile.d/msec.sh quiet -AddRules "\texport PATH=\$PATH:/usr/X11R6/bin" /etc/profile.d/msec.sh quiet -AddRules "fi" /etc/profile.d/msec.sh quiet -AddRules "if ! { (echo "\${PATH}" | grep -q /usr/X11R6/bin) } then" /etc/profile.d/msec.csh quiet -AddRules "\tsetenv PATH \"\${PATH}:/usr/X11R6/bin\"" /etc/profile.d/msec.csh quiet -AddRules "endif" /etc/profile.d/msec.csh quiet -AddRules "if ! echo \${PATH} |grep -q /usr/games ; then" /etc/profile.d/msec.sh quiet -AddRules "\texport PATH=\$PATH:/usr/games" /etc/profile.d/msec.sh quiet -AddRules "fi" /etc/profile.d/msec.sh quiet -AddRules "if ! { (echo "\${PATH}" | grep -q /usr/games) } then" /etc/profile.d/msec.csh quiet -AddRules "\tsetenv PATH \"\${PATH}:/usr/games\"" /etc/profile.d/msec.csh quiet -AddRules "endif" /etc/profile.d/msec.csh quiet +AddRules "if ! echo \${PATH} |grep -q /usr/X11R6/bin ; then\n\texport PATH=\$PATH:/usr/X11R6/bin\nfi" /etc/profile.d/msec.sh quiet +AddRules "if ! { (echo "\${PATH}" | grep -q /usr/X11R6/bin) } then\n\tsetenv PATH \"\${PATH}:/usr/X11R6/bin\"\nendif" /etc/profile.d/msec.csh quiet +AddRules "if ! echo \${PATH} |grep -q /usr/games ; then\n\texport PATH=\$PATH:/usr/games\nfi" /et +c/profile.d/msec.sh quiet +AddRules "if ! { (echo "\${PATH}" | grep -q /usr/games) } then\n\tsetenv PATH \"\${PATH}:/usr/games\"\nendif" /etc/profile.d/msec.csh quiet -AddRules "if ! echo \${PATH} |grep -q :. ; then" /etc/profile.d/msec.sh quiet -AddRules "\texport PATH=\$PATH:." /etc/profile.d/msec.sh quiet -AddRules "fi" /etc/profile.d/msec.sh quiet -AddRules "if ! { (echo "\${PATH}" | grep -q :.) } then" /etc/profile.d/msec.csh quiet -AddRules "\tsetenv PATH \"\${PATH}:.\"" /etc/profile.d/msec.csh quiet -AddRules "endif" /etc/profile.d/msec.csh quiet +AddRules "if ! echo \${PATH} |grep -q :. ; then\n\texport PATH=\$PATH:.\nfi" /etc/profile.d/msec.sh quiet +AddRules "if ! { (echo "\${PATH}" | grep -q :.) } then\n\tsetenv PATH \"\${PATH}:.\"\nendif" /etc/profile.d/msec.csh quiet # Do not boot on a shell AllowReboot diff --git a/init-sh/level4.sh b/init-sh/level4.sh index e822d3b..30d0436 100755 --- a/init-sh/level4.sh +++ b/init-sh/level4.sh @@ -111,25 +111,16 @@ AddRules "if [[ \${UID} == 0 ]]; then umask 022; else umask 077; fi" /etc/profil AddRules "if [[ \${UID} == 0 ]]; then umask 022; else umask 077; fi" /etc/profile.d/msec.csh echo "Adding \"normal\" PATH variable :" -AddRules "if ! echo \${PATH} |grep -q /usr/X11R6/bin ; then" /etc/profile.d/msec.sh quiet -AddRules "\texport PATH=\$PATH:/usr/X11R6/bin" /etc/profile.d/msec.sh quiet -AddRules "fi" /etc/profile.d/msec.sh quiet -AddRules "if ! { (echo "\${PATH}" | grep -q /usr/X11R6/bin) } then" /etc/profile.d/msec.csh quiet -AddRules "\tsetenv PATH \"\${PATH}:/usr/X11R6/bin\"" /etc/profile.d/msec.csh quiet -AddRules "endif" /etc/profile.d/msec.csh quiet -AddRules "if ! echo \${PATH} |grep -q /usr/games ; then" /etc/profile.d/msec.sh quiet -AddRules "\texport PATH=\$PATH:/usr/games" /etc/profile.d/msec.sh quiet -AddRules "fi" /etc/profile.d/msec.sh quiet -AddRules "if ! { (echo "\${PATH}" | grep -q /usr/games) } then" /etc/profile.d/msec.csh quiet -AddRules "\tsetenv PATH \"\${PATH}:/usr/games\"" /etc/profile.d/msec.csh quiet -AddRules "endif" /etc/profile.d/msec.csh quiet - -AddRules "if ! echo \${PATH} |grep -q :. ; then" /etc/profile.d/msec.sh quiet -AddRules "\texport PATH=\$PATH:." /etc/profile.d/msec.sh quiet -AddRules "fi" /etc/profile.d/msec.sh quiet -AddRules "if ! { (echo "\${PATH}" | grep -q :.) } then" /etc/profile.d/msec.csh quiet -AddRules "\tsetenv PATH \"\${PATH}:.\"" /etc/profile.d/msec.csh quiet -AddRules "endif" /etc/profile.d/msec.csh quiet +AddRules "if ! echo \${PATH} |grep -q /usr/X11R6/bin ; then\n\texport PATH=\$PATH:/usr/X11R6/bin\nfi" /etc/profile.d/msec.sh quiet +AddRules "if ! { (echo "\${PATH}" | grep -q /usr/X11R6/bin) } then\n\tsetenv PATH \"\${PATH}:/usr +/X11R6/bin\"\nendif" /etc/profile.d/msec.csh quiet +AddRules "if ! echo \${PATH} |grep -q /usr/games ; then\n\texport PATH=\$PATH:/usr/games\nfi" /et +c/profile.d/msec.sh quiet +AddRules "if ! { (echo "\${PATH}" | grep -q /usr/games) } then\n\tsetenv PATH \"\${PATH}:/usr/games\"\nendif" /etc/profile.d/msec.csh quiet + +AddRules "if ! echo \${PATH} |grep -q :. ; then\n\texport PATH=\$PATH:.\nfi" /etc/profile.d/msec. +sh quiet +AddRules "if ! { (echo "\${PATH}" | grep -q :.) } then\n\tsetenv PATH \"\${PATH}:.\"\nendif" /etc/profile.d/msec.csh quiet if [[ -f /lib/libsafe.so.1.3 ]]; then echo "Enabling stack overflow protection :" diff --git a/init-sh/level5.sh b/init-sh/level5.sh index b894ca1..6f99fa9 100755 --- a/init-sh/level5.sh +++ b/init-sh/level5.sh @@ -121,25 +121,14 @@ AddRules "umask 077" /etc/profile.d/msec.sh AddRules "umask 077" /etc/profile.d/msec.csh echo "Adding \"normal\" PATH variable :" -AddRules "if ! echo \${PATH} |grep -q /usr/X11R6/bin ; then" /etc/profile.d/msec.sh quiet -AddRules "\texport PATH=\$PATH:/usr/X11R6/bin" /etc/profile.d/msec.sh quiet -AddRules "fi" /etc/profile.d/msec.sh quiet -AddRules "if ! { (echo "\${PATH}" | grep -q /usr/X11R6/bin) } then" /etc/profile.d/msec.csh quiet -AddRules "\tsetenv PATH \"\${PATH}:/usr/X11R6/bin\"" /etc/profile.d/msec.csh quiet -AddRules "endif" /etc/profile.d/msec.csh quiet -AddRules "if ! echo \${PATH} |grep -q /usr/games ; then" /etc/profile.d/msec.sh quiet -AddRules "\texport PATH=\$PATH:/usr/games" /etc/profile.d/msec.sh quiet -AddRules "fi" /etc/profile.d/msec.sh quiet -AddRules "if ! { (echo "\${PATH}" | grep -q /usr/games) } then" /etc/profile.d/msec.csh quiet -AddRules "\tsetenv PATH \"\${PATH}:/usr/games\"" /etc/profile.d/msec.csh quiet -AddRules "endif" /etc/profile.d/msec.csh quiet - -AddRules "if ! echo \${PATH} |grep -q :. ; then" /etc/profile.d/msec.sh quiet -AddRules "\texport PATH=\$PATH:." /etc/profile.d/msec.sh quiet -AddRules "fi" /etc/profile.d/msec.sh quiet -AddRules "if ! { (echo "\${PATH}" | grep -q :.) } then" /etc/profile.d/msec.csh quiet -AddRules "\tsetenv PATH \"\${PATH}:.\"" /etc/profile.d/msec.csh quiet -AddRules "endif" /etc/profile.d/msec.csh quiet +AddRules "if ! echo \${PATH} |grep -q /usr/X11R6/bin ; then\n\texport PATH=\$PATH:/usr/X11R6/bin\nfi" /etc/profile.d/msec.sh quiet +AddRules "if ! { (echo "\${PATH}" | grep -q /usr/X11R6/bin) } then\n\tsetenv PATH \"\${PATH}:/usr/X11R6/bin\"\nendif" /etc/profile.d/msec.csh quiet +AddRules "if ! echo \${PATH} |grep -q /usr/games ; then\n\texport PATH=\$PATH:/usr/games\nfi" /etc/profile.d/msec.sh quiet +AddRules "if ! { (echo "\${PATH}" | grep -q /usr/games) } then\n\tsetenv PATH \"\${PATH}:/usr/games\"\nendif" /etc/profile.d/msec.csh quiet + +AddRules "if ! echo \${PATH} |grep -q :. ; then\n\texport PATH=\$PATH:.\nfi" /etc/profile.d/msec. +sh quiet +AddRules "if ! { (echo "\${PATH}" | grep -q :.) } then\n\tsetenv PATH \"\${PATH}:.\"\nendif" /etc/profile.d/msec.csh quiet if [[ -f /lib/libsafe.so.1.3 ]]; then echo "Enabling stack overflow protection :" |