File: postrm

package info (click to toggle)
linuxlogo 2.07-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 296 kB
  • ctags: 73
  • sloc: ansic: 982; sh: 125; makefile: 60
file content (17 lines) | stat: -rw-r--r-- 450 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
set -e

# Remove diversion of /etc/issue
if  [ remove = "$1" ] && [ -e /etc/issue.linuxlogo ]; then
    rm -f /etc/issue && dpkg-divert --package linuxlogo --remove --rename \
    --divert /etc/issue.linuxlogo /etc/issue
fi

# Make sure that /etc/issue exists...
if [ ! -f /etc/issue ]; then
 echo -n "Restoring the original /etc/issue..."
 echo "Debian GNU/\s `cat /etc/debian_version`  \n \l" > /etc/issue
 echo "done."
fi

#DEBHELPER#