slitaz-forge view boot/index.cgi @ rev 711

Update pangolin
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jan 01 18:26:56 2020 +0100 (5 months ago)
parents 1916a8e21160
children
line source
1 #!/bin/sh
2 # Content negotiation for SliTaz Network
3 #
5 IFS=","
6 for lang in $HTTP_ACCEPT_LANGUAGE; do
7 lang=${lang%;*} lang=${lang# } lang=${lang%-*}
8 [ -d "$lang" ] && break
9 done
10 unset IFS
11 [ -d "$lang" ] || lang="en"
13 echo "Location: $lang/"
14 echo ""
16 exit 0