From 02a2196150b16ee1c343a5587cadb177016fe222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 15 Oct 2016 19:22:44 +0200 Subject: Update files to changes done while abandoning systemd Now I use openrc. --- local/bin/mxrandr | 6 +++--- local/bin/startme | 7 ------- local/bin/sys-reboot | 2 ++ local/bin/sys-shutdown | 2 ++ local/bin/sys-suspend | 2 ++ local/bin/system-backup | 7 +++---- 6 files changed, 12 insertions(+), 14 deletions(-) delete mode 100755 local/bin/startme create mode 100755 local/bin/sys-reboot create mode 100755 local/bin/sys-shutdown create mode 100755 local/bin/sys-suspend (limited to 'local/bin') diff --git a/local/bin/mxrandr b/local/bin/mxrandr index 81ae511..7c51128 100755 --- a/local/bin/mxrandr +++ b/local/bin/mxrandr @@ -8,9 +8,9 @@ disconnectedOutputs=$(xrandr | grep -E " disconnected (primary )?[1-9]+" | awk ' cmd="xrandr " cmd_def=$cmd -INTERNAL=eDP-1 -HDMI=HDMI-1 -VGA=VGA-1 +INTERNAL=eDP1 +HDMI=HDMI1 +VGA=VGA1 for device in "$disconnectedOutputs"; do if [ -n "$defice" ]; then diff --git a/local/bin/startme b/local/bin/startme deleted file mode 100755 index 4af6150..0000000 --- a/local/bin/startme +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -if ls ~/.annoyme/*.pid 2>/dev/null >/dev/null; then - annoyme -fi - -startx diff --git a/local/bin/sys-reboot b/local/bin/sys-reboot new file mode 100755 index 0000000..24a024c --- /dev/null +++ b/local/bin/sys-reboot @@ -0,0 +1,2 @@ +#!/bin/sh +dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart diff --git a/local/bin/sys-shutdown b/local/bin/sys-shutdown new file mode 100755 index 0000000..bff9762 --- /dev/null +++ b/local/bin/sys-shutdown @@ -0,0 +1,2 @@ +#!/bin/sh +dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop diff --git a/local/bin/sys-suspend b/local/bin/sys-suspend new file mode 100755 index 0000000..49b4b2e --- /dev/null +++ b/local/bin/sys-suspend @@ -0,0 +1,2 @@ +#!/bin/sh +dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Suspend boolean:true diff --git a/local/bin/system-backup b/local/bin/system-backup index e19889d..956ba31 100755 --- a/local/bin/system-backup +++ b/local/bin/system-backup @@ -1,11 +1,9 @@ #!/bin/bash # vim:ft=sh # New line separated list of all directories to backup -read -d '' DIRS <<-"_EOF_" -/etc +DIRS="/etc /home -/home_hdd -_EOF_ +/home_hdd" # Path where backup will be mounted MPATH=/media/backup-hdd # UUID of disk @@ -18,6 +16,7 @@ if [ `id -u` -ne "0" ]; then echo Please run this as root. exit 1 fi +set -e # Mount disk PART=$(lsblk -fpl | grep "$UUID" | awk '{print $1}') -- cgit v1.2.3