Commit ce797e5e authored by Eric Vidal's avatar Eric Vidal 💬

be more safier and less confusing at shutdown skeleton wrapper

parent f733e1a1
# Copyright (c) 2019-2020 Eric Vidal <>
# All rights reserved.
# This file is part of Obarun. It is subject to the license terms in
# the LICENSE file found in the top-level directory of this
# distribution.
# This file may not be copied, modified, propagated, or distributed
# except according to the terms contained in the LICENSE file.
66-shutdown $@
usage () {
cat <<EOF
$PROG [ -h | -p | -r ] time
$PROG <options> time
options :
-h: halt the machine
-p: poweroff the machine
-r: reboot the machine
Time must be one of these formats: [ now | [+]mins | hh:mm ] where:
now : triggers the shutdown sequence immediately.
mins or +mins : relative time; triggers the shutdown sequence after mins minutes.
hh:mm : absolute time; triggers the shutdown sequence when the time hh:mm occurs.
See also 66-shutdown program to more features.
exit 111
die() {
printf "${PROG}:fatal: options must be set first\n" >&1
[ -z ${1} ] && die
[ ${1:0:1} != '-' ] && die
66-shutdown "${@}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment