3
USERCONF=${HOME}/.arb.conf
4
USERPROP=${HOME}/.arb_prop
6
[ -s $CONF ] && . $CONF
7
# override general settings with user specific settings
8
[ -s $USERCONF ] && . $USERCONF
10
# Try to make user working directory for arb data
11
if [ _"$ARBUSERDATA" != _"" ] ; then
12
if [ ! -d $ARBUSERDATA ] ; then
13
mkdir -p $ARBUSERDATA || ARBUSERDATA=""
16
if [ _"$ARBUSERDATA" != _"" ] ; then
18
if [ ! -s demo.arb ] ; then
19
if [ -s /usr/share/doc/arb/examples/demo.arb.gz ] ; then
20
cp -a /usr/share/doc/arb/examples/demo.arb.gz .
26
# if user has no arb input masks just symlink to the sample masks
27
[ -d "$USERPROP/inputMasks" ] || mkdir -p "$USERPROP/inputMasks"
28
MASKS=`ls "$USERPROP/inputMasks" | wc -l`
29
if [ $MASKS -eq 0 ] ; then
30
cd "$USERPROP/inputMasks"
31
for mask in `ls /usr/lib/arb/lib/inputMasks/*.mask` ; do
36
# Save files as group readable
39
# Warn if the user is not member of group arb and thus not allowed to write
40
# to /var/lib/arb subdirectories
41
if ! groups | grep -q -w arb ; then
43
Warning: User $USER is no member of group arb and thus not allowed to write to
44
/var/lib/arb. This might restrict the functionality of arb.
45
Please ask your system administrator to run
47
dpkg-reconfigure arb-common
49
to incllude user $USER into the group of users which have full
55
export ARBHOME=/usr/lib/arb