initial upload
This commit is contained in:
14
zfswatcher
Executable file
14
zfswatcher
Executable 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
|
||||
Reference in New Issue
Block a user