debian/util-linux.postinst
raw| 1 | #!/bin/sh |
| 2 | set -e |
| 3 | |
| 4 | # Due to UL_REQUIRES_LINUX([more]), only set up pager alternative on linux. |
| 5 | OS=#DEB_HOST_ARCH_OS# |
| 6 | if [ "${OS}" = "linux" ] && command -v update-alternatives >/dev/null 2>&1; then |
| 7 | update-alternatives --install /usr/bin/pager pager /bin/more 50 \ |
| 8 | --slave /usr/share/man/man1/pager.1.gz pager.1.gz \ |
| 9 | /usr/share/man/man1/more.1.gz |
| 10 | fi |
| 11 | |
| 12 | #DEBHELPER# |