summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-02-18 14:29:08 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-02-18 14:29:08 +0100
commit799bfea483be1f56df926d89f6f94af76c544c26 (patch)
treefdfbe8006df456c3314e52c9176caa479771f8e6
parentf2f26c40f6dc434ff11147de0f7a8de2c8194e00 (diff)
off: Support leave.d
-rwxr-xr-xetc/functions/off10
1 files changed, 8 insertions, 2 deletions
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 <http://sam.zoy.org/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