[debian-edu-commits] debian-edu/ 01/02: dhclient-exit-hooks.d/hostname: adjust for the case of a dedicated LTSP server.
Wolfgang Schweer
schweer-guest at moszumanska.debian.org
Tue May 31 20:02:46 UTC 2016
This is an automated email from the git hooks/post-receive script.
schweer-guest pushed a commit to branch master
in repository debian-edu-config.
commit 5cd2e74148311653daf4a3ca6cd4e983839f2bbb
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.
---
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