Browse Source

clockspeed: changed clockctl to send errors to stderr

user/chris/0.1.0/grsecurity
Alejandro Mery 14 years ago
parent
commit
c37c4532b9
  1. 13
      network/clockspeed/clockctl.sh

13
network/clockspeed/clockctl.sh

@ -3,7 +3,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../clockspeed/clockctl.sh
# Copyright (C) 2008 The OpenSDE Project
# Copyright (C) 2008 - 2010 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
@ -18,12 +18,16 @@
# wcm, 2003.11.26 - 2003.11.26
# ===
die() {
echo "$0: $*" >&2
exit 1
}
# read configuration:
if [ -r /etc/conf/clockspeed ] ; then
. /etc/conf/clockspeed
else
echo "$0: configuration error: unable to read /etc/conf/clockspeed"
exit 1
die "configuration error: unable to read /etc/conf/clockspeed"
fi
# clock_pick function:
@ -34,8 +38,7 @@ clock_pick() {
tai|TAI) D_bindir/taiclock "${CLOCK_IP}"
;;
*)
echo "$0: configuration error: CLOCK_TYPE not recognized"
exit 1
die "configuration error: CLOCK_TYPE not recognized"
;;
esac
}

Loading…
Cancel
Save