forked from hashbang/shell-etc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnethack-common
executable file
·35 lines (31 loc) · 907 Bytes
/
nethack-common
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh
### BEGIN INIT INFO
# Provides: nethack-common
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop:
# Short-Description: Nethack save-file recovery script for Debian
# Description: Recovers Nethack save-files on start
### END INIT INFO
#
# Ben Gertzfield ([email protected]) 29 July 1997
# Copyright 1997 Ben Gertzfield. This script is released under the
# GNU General Public License, version 2 or later.
. /lib/lsb/init-functions
PATH=/bin:/usr/bin:/sbin:/usr/sbin
set -e
case "$1" in
start)
# Has the nethack package been removed?
test -x /usr/lib/games/nethack/recover-all || exit 0
exec /usr/lib/games/nethack/recover-all
;;
stop|reload|restart|force-reload|status)
;;
*)
N=/etc/init.d/nethack-common
echo "Usage: $N {start|stop|restart|force-reload|status}" >&2
exit 1
;;
esac