#!/bin/sh location=`/usr/share/dockcheck/whereami` echo I am $location # -- Setup for applicable environment --- echo Location of laptop: $location. Configuring... # Change XF86Config file to one for this environment. If # if does not exist use default. if [ -a /usr/X11R6/lib/X11/XF86Config.$location ]; then cp -v /usr/X11R6/lib/X11/XF86Config.$location /usr/X11R6/lib/X11/XF86Config else cp -v /usr/X11R6/lib/X11/XF86Config.default /usr/X11R6/lib/X11/XF86Config fi # Perform other customizations if the file exists. if [ -a /usr/share/dockcheck/customize.$location ]; then /usr/share/dockcheck/customize.$location fi