summaryrefslogtreecommitdiff
path: root/etc/mklocaluser.d/60-itzks-systems-roamingworkstation_disable-welcome-page
diff options
context:
space:
mode:
Diffstat (limited to 'etc/mklocaluser.d/60-itzks-systems-roamingworkstation_disable-welcome-page')
-rwxr-xr-xetc/mklocaluser.d/60-itzks-systems-roamingworkstation_disable-welcome-page30
1 files changed, 15 insertions, 15 deletions
diff --git a/etc/mklocaluser.d/60-itzks-systems-roamingworkstation_disable-welcome-page b/etc/mklocaluser.d/60-itzks-systems-roamingworkstation_disable-welcome-page
index 9a6bb03..1cdcd18 100755
--- a/etc/mklocaluser.d/60-itzks-systems-roamingworkstation_disable-welcome-page
+++ b/etc/mklocaluser.d/60-itzks-systems-roamingworkstation_disable-welcome-page
@@ -14,30 +14,30 @@ fi
if [ "$GETDEFAULTHOMEPAGE" ] &&
echo "$PROFILE" | egrep -q 'Main-Server|Workstation|Roaming-Workstation|LTSP-Server|Minimal' ; then
- for lang in $(echo $LANGCODE | tr : " "); do
- if wget -q -O /dev/null ${GETDEFAULTHOMEPAGE}index.html.$lang ; then
- welcomeurl="${GETDEFAULTHOMEPAGE}index.html.$lang"
- break
- else
- welcomeurl=$GETDEFAULTHOMEPAGE || true
- fi
- done
+ for lang in $(echo $LANGCODE | tr : " "); do
+ if wget -q -O /dev/null ${GETDEFAULTHOMEPAGE}index.html.$lang ; then
+ welcomeurl="${GETDEFAULTHOMEPAGE}index.html.$lang"
+ break
+ else
+ welcomeurl=$GETDEFAULTHOMEPAGE || true
+ fi
+ done
else
- welcomeurl=http://www.skolelinux.org/
+ welcomeurl=http://www.skolelinux.org/
fi
if [ -z "$welcomeurl" ] || [ "about:blank" = "$welcomeurl" ]; then
- exit 0
+ exit 0
fi
flagdir="$HOMEDIR/.debian-edu"
flagfile="$flagdir/welcome-page-shown"
if [ ! -f "$flagfile" ] ; then
- echo "$welcomeurl" > "$flagfile"
-else
- oldwelcomeurl="$(cat $flagfile)"
- if [ "$welcomeurl" != "$oldwelcomeurl" ] ; then
echo "$welcomeurl" > "$flagfile"
- fi
+else
+ oldwelcomeurl="$(cat $flagfile)"
+ if [ "$welcomeurl" != "$oldwelcomeurl" ] ; then
+ echo "$welcomeurl" > "$flagfile"
+ fi
fi