source: branches/cereal/0.22/fs/usr/share/cereal/mainrun @ 1204

Last change on this file since 1204 was 1204, checked in by jrollins, 10 years ago

cereal: last tweaks on uids

  • Property svn:executable set to *
File size: 816 bytes
Line 
1#!/bin/sh -e
2
3# The cereal scripts were written by
4# Jameson Rollins <jrollins@finestructure.net>
5# and
6# Daniel Kahn Gillmor <dkg@fifthhorseman.net>.
7#
8# They are Copyright 2007, and are all released under the GPL, version 3
9# or later.
10
11exec 2>./socket 1>&2
12
13SHAREDIR="/usr/share/cereal"
14export SHAREDIR
15. "$SHAREDIR/common"
16
17# ensure that the socket is available
18( [ -p ./socket ] || (rm -f ./socket; mkfifo ./socket) ) || failure "can not create socket."
19
20# find screenrc:   
21if [ -e "./screenrc" ] ; then
22    SCREENRC="./screenrc"
23elif [ -e "$ETC/screenrc" ] ; then
24    SCREENRC="$ETC/screenrc"
25else
26    failure "cereal screenrc file not found."
27fi
28export SCREENRC
29
30# call the mainrun function (defined in $SHAREDIR/common)
31# that actually runs screen
32exec chpst -e ./env sh -c ". $SHAREDIR/common && mainrun"
Note: See TracBrowser for help on using the repository browser.