wok diff shutdown/stuff/shutdown @ rev 18734
Remove redundant messages in {pre|post}_{install|remove}() in random packages
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Dec 21 02:53:09 2015 +0200 (2015-12-21) |
parents | |
children | 02c70d036ea0 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/shutdown/stuff/shutdown Mon Dec 21 02:53:09 2015 +0200 1.3 @@ -0,0 +1,12 @@ 1.4 +#!/bin/sh 1.5 + 1.6 +# 1.7 +# This should do more, but this at least gets other scripts/tools the ability to 1.8 +# use 'shutdown -r now' or similar. 1.9 +# 1.10 + 1.11 +if [ "x$1" == "x-r" ]; then 1.12 + /sbin/reboot 1.13 +else 1.14 + /sbin/poweroff 1.15 +fi