[debian-edu-commits] debian-edu/ 01/03: dhclient-exit-hooks.d/hostname: adjust for the case of a dedicated LTSP server.
Holger Levsen
holger at layer-acht.org
Wed Jun 1 09:56:48 UTC 2016
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch jessie
in repository debian-edu-config.
commit a71dd1326a7ed4ddabeb528852b905b8ff219081
Author: Wolfgang Schweer <wschweer at arcor.de>
Date: Tue May 31 22:00:38 2016 +0200
dhclient-exit-hooks.d/hostname: adjust for the case of a dedicated LTSP server.
(cherry picked from commit 5cd2e74148311653daf4a3ca6cd4e983839f2bbb)
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
etc/dhcp/dhclient-exit-hooks.d/hostname | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/etc/dhcp/dhclient-exit-hooks.d/hostname b/etc/dhcp/dhclient-exit-hooks.d/hostname
index f379e10..27193f8 100755
--- a/etc/dhcp/dhclient-exit-hooks.d/hostname
+++ b/etc/dhcp/dhclient-exit-hooks.d/hostname
@@ -17,15 +17,14 @@ export PATH
# if moved between networks.
if [ -r /etc/debian-edu/config ] ; then
. /etc/debian-edu/config
- case "$PROFILE" in
- Workstation|Thin-Client-Server|Minimal)
- ;;
- *)
- exit 0
- ;;
- esac
-else
+fi
+
+if echo "$PROFILE" | egrep -q 'Main-Server|Roaming-Workstation|Standalone' ; then
exit 0
+ else
+ if echo "$PROFILE" | egrep -q 'Workstation|Thin-Client-Server|Minimal' ; then
+ :
+ fi
fi
log() {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/debian-edu-config.git
More information about the debian-edu-commits
mailing list