+invirt-console (0.2.16~glasgall2) precise; urgency=low
+
+ * Disable MOTD updating by transforming pam config to run pam_motd with
+ noupdate.
+
+ -- Adam Glasgall <glasgall@mit.edu> Sat, 20 Apr 2013 16:25:24 -0400
+
invirt-console (0.2.16~glasgall1) precise; urgency=low
* No-change rebuild for Precise
DEB_DIVERT_EXTENSION = .invirt
DEB_TRANSFORM_FILES_invirt-console-server += \
- /etc/init.d/bootmisc.sh.invirt \
/etc/nsswitch.conf.invirt \
/etc/nscd.conf.invirt \
/etc/pam.d/sshd.invirt \
+ /etc/pam.d/login.invirt \
/etc/ssh/sshd_config.invirt.invirt
DEB_UNDIVERT_FILES_invirt-console-server += \
+++ /dev/null
-#!/bin/bash
-patch -p0 -o /dev/fd/4 3<&0 4>&1 1>/dev/null <<EOF
-
-# Yes, I there's no context. But the lines being replaced are less
-# likely to change than the lines around them
-
---- Ignored
-+++ /dev/fd/3
-@@ -42,3 +42,2 @@
-- # Update motd
-- uname -snrvm > /var/run/motd
-- [ -f /etc/motd.tail ] && cat /etc/motd.tail >> /var/run/motd
-+ # Do not update motd
-+ cp /etc/motd /var/run/motd
--- /dev/null
+#!/bin/sh
+exec sed -e 's/pam_motd.so/pam_motd.so noupdate/g'
echo "# print the \"your account doesn't exist\" error:"
echo 'auth [success=die ignore=reset default=die module_unknown=die] pam_echo.so file=/etc/issue.net.no_user'
echo
-exec cat
+exec sed -e 's/pam_motd.so/pam_motd.so noupdate/g'