From 799bfea483be1f56df926d89f6f94af76c544c26 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 18 Feb 2009 14:29:08 +0100 Subject: off: Support leave.d --- etc/functions/off | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'etc/functions') diff --git a/etc/functions/off b/etc/functions/off index 85a62dd..c24b575 100755 --- a/etc/functions/off +++ b/etc/functions/off @@ -4,7 +4,7 @@ ## License: WTFPL autoload warn fdie -typeset filesystem garbage +typeset filesystem garbage file typeset -a filesystems typeset tune2fs typeset -i force reboot simulate @@ -48,7 +48,13 @@ if [[ $force != 1 && $hosts[$HOST] == *:server:* ]] { } if [[ -n $gone ]] { - execute unisync with-all + for file in ~/packages/leave.d/etc/{_any,$gone}/*(N); { + if [[ ${file:e} == zsh ]] { + execute source $file + } else { + execute $file + } + } } if pgrep -x amarokapp &> /dev/null; then -- cgit v1.2.3