File: roster.sh

package info (click to toggle)
debroster 1.12
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 216 kB
  • ctags: 3
  • sloc: makefile: 46; sh: 33
file content (23 lines) | stat: -rwxr-xr-x 880 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/bash

DIMENSIONS=$(xdpyinfo -ext all | sed -ne 's/  dimensions: *\([^ ]*\).*/\1/p')

#Performance - assume the debian location, and if this fails try looking for it.

if [ -x /usr/bin/Eterm ] ; then
    ETERM_BIN=/usr/bin/Eterm
else
    ETERM_BIN=$(find /usr -name Eterm -print | grep bin)
fi

if [ -x "$ETERM_BIN" ] ; then
#	$ETERM_BIN -g $DIMENSIONS+0+0 -e ./eterm.sh
	$ETERM_BIN  -n 'Debian - Is your distribution this big?' -P /usr/lib/debroster/openlogo1.jpg@:s -f black -F '-*-courier-*-*-*-*-*-200-*-*-*-*-iso8859-1'  -c white -e /usr/lib/debroster/dr.sh
elif [ -x /usr/X11R6/bin/xterm ]; then
#    echo no eterm
    /usr/X11R6/bin/xterm +bc -cr white +j -ms white +s +sb +si -wf -title 'Debian - Is your distribution this big?' -fn '-*-courier-*-*-*-*-*-200-*-*-*-*-iso8859-1' -e /usr/lib/debroster/dr.sh
else
    echo "No valid terminal application!!"
fi

exit 0