initial upload
This commit is contained in:
commit
ff0543ddc6
4 files changed
+44
No files matched your search
Executable
+14
@@ -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