#!/bin/bash
# The script purpose is to open the configurator interface in a text mode browser 
# It can be usefull for technician
#
# It can be called from SCREEN_XX attribute in the configurator.
# To be copied in /opt/xtermroot/etc/screen.d/
# Start configurator in remontely mode with the ctrl+alt+FXX key combination (XX = TTY number)
#
# Copyright 2005-2006,  Mille-Xterm Team
# Stephane Bond,   stephane.bond@crim.ca
# Patrice Gauvin,  pgauvin@cslaval.qc.ca
#
# This file is part of the MILLE-XTERM distribution.
# See the MILLE-XTERM (english) and the MILLE (french) project
#
#       http://www.revolutionlinux.com/mille-xterm/
#       http://www.mille.ca/
#
# The MILLE-XTERM framework is covered by the GNU General Public License.  See
# the COPYING file in the top-level MILLE-XTERM directory.  Software packages
# that are included in the MILLE-XTERM distribution have their own licenses.
#
# ------------------------------------------------------------------------- 

mac=`ifconfig | grep HWaddr | awk -F' ' '{print $NF}'`
if [ -f /etc/config-server ] ; then
  # Find the config server
  MY_CONFIG_SERVER=`cat /etc/config-server`
  # Load node webpage with links
  elinks "$MY_CONFIG_SERVER/../Tech/?nb_find=$mac"
else
  echo "File /etc/config-server not found !"
fi
