projects
/
grml-etc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
debian: Bump Standards-Version to 3.8.4
[grml-etc.git]
/
etc
/
init.d
/
grml-reboot
diff --git
a/etc/init.d/grml-reboot
b/etc/init.d/grml-reboot
index
637630b
..
81ab23a
100755
(executable)
--- a/
etc/init.d/grml-reboot
+++ b/
etc/init.d/grml-reboot
@@
-1,4
+1,4
@@
-#!/bin/sh
+#!/bin/
ba
sh
# Filename: grml-reboot
# Purpose: reboot grml system
# Authors: grml-team (grml.org)
# Filename: grml-reboot
# Purpose: reboot grml system
# Authors: grml-team (grml.org)
@@
-14,7
+14,8
@@
export PATH=/sbin:/bin:/usr/bin:/usr/sbin
cd /
# Clean input/output
cd /
# Clean input/output
-exec >/dev/console 2>&1 </dev/console
+CONSOLE=/dev/console
+[ -c "$CONSOLE" ] && exec >"$CONSOLE" 2>&1 <"$CONSOLE"
# default variables
INSTALLED=false
# default variables
INSTALLED=false
@@
-48,7
+49,7
@@
if ! $INSTALLED ; then
DEVICE=""
if [ -n "$CDROM" ] ; then
DEVICE="${CDROM##/dev/}"
DEVICE=""
if [ -n "$CDROM" ] ; then
DEVICE="${CDROM##/dev/}"
- DEVICE="${DEVICE%%[0-9]*}"
+
[ -d /sys/block/${DEVICE} ] ||
DEVICE="${DEVICE%%[0-9]*}"
if [ -n "$DEVICE" ] ; then
# is it a removable device?
if [ -n "$DEVICE" ] ; then
# is it a removable device?