initial upload

This commit is contained in:
Rune
2017-11-12 17:37:32 +01:00
commit ff0543ddc6
4 changed files with 44 additions and 0 deletions

14
zfswatcher Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
persist_config_path=/zfswatcher_config/zfswatcher.conf
temp_config_path=/etc/zfs/zfswatcher.conf
if [[ -s $persist_config_path ]]; then
rm $temp_config_path
ln -s $persist_config_path /etc/zfs/
elif [[ ( -e $persist_config_path && ! -s $persist_config_path ) || \
( ! -e $persist_config_path ) ]]; then
mv $temp_config_path $persist_config_path
ln -s $persist_config_path /etc/zfs
fi
exec /usr/sbin/zfswatcher