[debian-edu-commits] [Git][debian-edu/debian-edu-install][master] 2 commits: Fixed network card counting
Mike Gabriel (@sunweaver)
gitlab at salsa.debian.org
Fri Sep 25 08:06:07 BST 2026
Mike Gabriel pushed to branch master at Debian Edu / debian-edu-install
Commits:
45968c3e by Roland Clobus at 2026-09-18T19:21:02+02:00
Fixed network card counting
Network cards are not always ethN any more
- - - - -
d6e4aa3f by Roland Clobus at 2026-09-18T19:26:31+02:00
Profile: do not always select LTSP-Server (Closes: 1148259)
The LTSP-Server will only be enabled if at least 2 non-wireless network
cards are detected
- - - - -
1 changed file:
- debian-edu-profile
Changes:
=====================================
debian-edu-profile
=====================================
@@ -117,7 +117,7 @@ check_profiles() {
# Return the number of non-wireless network interfaces
non_wifi_iface_count() {
count=0
- for iface in $(ip -o link | grep '^.: eth'|cut -d: -f2) ; do
+ for iface in $(ip -o link | cut -d: -f2 | grep -v '^ lo$'); do
if [ -d /sys/class/net/$iface/wireless ] ; then
:
else
@@ -166,12 +166,11 @@ else
defaultprofile="Standalone"
laptop=true
else
- defaultprofile="Main-Server, LTSP-Server, Workstation"
- mainserver=true
+ defaultprofile="Main-Server, Workstation"
fi
fi
-if [ true != "$mainserver" ] && [ true != "$laptop" ] \
+if [ true != "$laptop" ] \
&& [ 1 -lt $(non_wifi_iface_count) ] ; then
log "several network cards detected, preselecting ltsp-server"
defaultprofile="$defaultprofile, LTSP-Server"
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-install/-/compare/a893a3ccb993638fca41ffa08430900e753175e6...d6e4aa3f85a66a034e614edcaf4244664b03a2ba
--
View it on GitLab: https://salsa.debian.org/debian-edu/debian-edu-install/-/compare/a893a3ccb993638fca41ffa08430900e753175e6...d6e4aa3f85a66a034e614edcaf4244664b03a2ba
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20260925/6267a436/attachment-0001.htm>
More information about the debian-edu-commits
mailing list