Handle issue and issue.net upgrade.
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Mon, 27 Apr 2009 13:40:21 +0000 (15:40 +0200)
committerValentin Vidic <Valentin.Vidic@CARNet.hr>
Mon, 27 Apr 2009 13:40:21 +0000 (15:40 +0200)
files/etc/issue [deleted file]
files/etc/issue.expect [new file with mode: 0644]
files/etc/issue.net [deleted file]
files/etc/issue.net.expect [new file with mode: 0644]
files/etc/issue.net.restore [new file with mode: 0644]
files/etc/issue.restore [new file with mode: 0644]
src/functions.sh

diff --git a/files/etc/issue b/files/etc/issue
deleted file mode 100644 (file)
index 0117bcc..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-Debian GNU/Linux 3.1 \n \l
-
diff --git a/files/etc/issue.expect b/files/etc/issue.expect
new file mode 100644 (file)
index 0000000..8b848c0
--- /dev/null
@@ -0,0 +1 @@
+Debian GNU/Linux 4.0 (CARNet Debian 4.0) \n \l
diff --git a/files/etc/issue.net b/files/etc/issue.net
deleted file mode 100644 (file)
index fb3f9e3..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Debian GNU/Linux 3.1 %h
diff --git a/files/etc/issue.net.expect b/files/etc/issue.net.expect
new file mode 100644 (file)
index 0000000..e0b3930
--- /dev/null
@@ -0,0 +1 @@
+Debian GNU/Linux 4.0 (CARNet Debian 4.0) %h
diff --git a/files/etc/issue.net.restore b/files/etc/issue.net.restore
new file mode 100644 (file)
index 0000000..ccee04f
--- /dev/null
@@ -0,0 +1 @@
+Debian GNU/Linux 4.0
diff --git a/files/etc/issue.restore b/files/etc/issue.restore
new file mode 100644 (file)
index 0000000..162c8f5
--- /dev/null
@@ -0,0 +1,2 @@
+Debian GNU/Linux 4.0 \n \l
+
index 7f8546b..1524f96 100644 (file)
@@ -786,6 +786,7 @@ restore_configs () {
   restore_config spamassassin-cn razor 1:2.85-1 /etc/razor/razor-agent.conf
   restore_config kernel-2.6-cn libpam-modules 1.0.1-5 /etc/security/limits.conf
   restore_config samba-cn samba-common 2:3.2.5-4lenny2 /etc/samba/smb.conf
+  restore_config '' base-files 5lenny2 /etc/issue /etc/issue.net
 
   # check if monitrc is template based
   if [ -f /etc/monit/monitrc -a ! -f /etc/monit/monitrc.$backup_ext ]; then
@@ -810,8 +811,6 @@ restore_configs () {
      rm -f $config_new
   fi
 
-#  restore_config base-files 4 /etc/issue /etc/issue.net
-#  restore_config base-files 4 /etc/issue /etc/issue.net
 #  restore_config login 1:4.0.18.1 /etc/pam.d/login
 #  restore_config mysql-server 5.0.3 /etc/init.d/mysql \
 #                                    /etc/logrotate.d/mysql-server \
@@ -1220,6 +1219,7 @@ comment_force_overwrite () {
 fix_issue () {
   cat > /etc/issue <<EOF
 Debian GNU/Linux 5.0 (CARNet Debian 5.0) \\n \\l
+
 EOF
 
   cat > /etc/issue.net <<EOF