README
" + echo "" + # Let have a few color in README + cat ${README} | sed \ + -e "/^====.*/"d -e "/^----.*/"d \ + -e s"#==\([^']*\)==#" + html_footer + exit 0 ;; + +esac + +# +# Home page with server information and configuration +# +html_header "Welcome" + +uptime=$(ps | grep minecraft_server | grep -v grep | awk '{print $3}') +if [ ! "$uptime" ]; then + uptime="Not running" +fi + +cat << EOT\1
#"g \ + -e s"#^ [\#|\$|\/]\([^']*\)#\0#"g \ + -e s"#http://\([^']*\).*#\0#"g + echo "
Welcome to Tazcraft
-A SliTaz GNU/Linux Minecraft server
++ A SliTaz GNU/Linux Minecraft server + - Uptime: $uptime +
+
-Server address: play.slitaz.me
+Server address: \
+play.slitaz.me
Configuration
$(gettext "Variable") | +$(gettext "Key") | $(gettext "Value") | EOT -for var in gamemode server-port level-name difficulty max-players; do - get_value ${var} +for var in gamemode server-port level-name difficulty max-players \ + allow-flight white-list +do + get_key ${var} done +echo "