haiku/data/bin/welcome
2018-08-20 21:00:25 -04:00

17 lines
373 B
Bash
Executable File

#!/bin/sh
welcomeURL="\
https://www.haiku-os.org/docs/welcome/welcome_en.html"
welcomeDir=/boot/system/documentation/welcome/
welcomeFile=$welcomeDir/welcome_en.html
localizedWelcomeFile=$welcomeDir/welcome_"$LANG".html
if [ -f $localizedWelcomeFile ]; then
open file://$localizedWelcomeFile
elif [ -f $welcomeFile ]; then
open $welcomeFile
else
open $welcomeURL
fi