diff options
author | Frederic Lepied <flepied@mandriva.com> | 2001-12-02 05:54:42 +0000 |
---|---|---|
committer | Frederic Lepied <flepied@mandriva.com> | 2001-12-02 05:54:42 +0000 |
commit | f728b1e11333fb8e80577147f72ae1a79b7f0cff (patch) | |
tree | 0242ae31eeb5180af3adac24288e89a3eeb886aa | |
parent | eb53ae1803d54a1f2d7639ecff9605c3581016b2 (diff) | |
download | msec-f728b1e11333fb8e80577147f72ae1a79b7f0cff.tar msec-f728b1e11333fb8e80577147f72ae1a79b7f0cff.tar.gz msec-f728b1e11333fb8e80577147f72ae1a79b7f0cff.tar.bz2 msec-f728b1e11333fb8e80577147f72ae1a79b7f0cff.tar.xz msec-f728b1e11333fb8e80577147f72ae1a79b7f0cff.zip |
added LoadSysctl, RemoveIssue, RemoveIssueNet, RestoreIssues functions.
-rw-r--r-- | init-sh/lib.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/init-sh/lib.sh b/init-sh/lib.sh index 2f9e8f2..4be663b 100644 --- a/init-sh/lib.sh +++ b/init-sh/lib.sh @@ -310,6 +310,33 @@ RootSshLogin () { fi } +LoadSysctl () { + /sbin/sysctl -e -p /etc/sysctl.conf + service network restart +} + +RemoveIssue () { + if [ -f /etc/issue ]; then + mv -f /etc/issue /etc/issue.msec + fi +} + +RemoveIssueNet () { + if [ -f /etc/issue.net ]; then + mv -f /etc/issue.net /etc/issue.net.msec + fi +} + +RestoreIssues () { + if [ ! -f /etc/issue.net -a -f /etc/issue.net.msec ]; then + mv -f /etc/issue.net.msec /etc/issue.net + fi + + if [ ! -f /etc/issue -a -f /etc/issue.msec ]; then + mv -f /etc/issue.msec /etc/issue + fi +} + # If we are currently installing our # system with DrakX, we don't ask anything to the user... # Instead, DrakX do it and give us a file with some variable. @@ -330,6 +357,8 @@ CleanRules /etc/security/msec/security.conf CommentUserRules /etc/security/msec/security.conf touch /etc/ld.so.preload CleanRules /etc/ld.so.preload +CleanRules /etc/host.conf +CleanRules /etc/sysctl.conf CleanLoaderRules LoaderDrakX @@ -341,6 +370,7 @@ CleanRules /etc/crontab CleanRules /etc/profile CleanRules /etc/zprofile +RestoreIssues if [[ -f /etc/X11/xinit.d/msec ]]; then CleanRules /etc/X11/xinit.d/msec |