1
0
mirror of https://github.com/azlux/log2ram.git synced 2023-10-10 13:37:24 +02:00

for dash compatibility

This commit is contained in:
azlux 2016-10-18 10:25:27 +02:00 committed by GitHub
parent e54ed85681
commit 5e0014c848

View File

@ -11,7 +11,7 @@ case "$1" in
mount --bind $RAM_LOG $HDD_LOG mount --bind $RAM_LOG $HDD_LOG
mount --make-private $HDD_LOG mount --make-private $HDD_LOG
mount -t tmpfs -o nosuid,noexec,nodev,mode=0755,size=$SIZE log2ram $RAM_LOG mount -t tmpfs -o nosuid,noexec,nodev,mode=0755,size=$SIZE log2ram $RAM_LOG
if [[ "$USE_RSYNC" = true ]]; then if [ "$USE_RSYNC" = true ]; then
rsync -aXWv --delete --links $HDD_LOG $RAM_LOG rsync -aXWv --delete --links $HDD_LOG $RAM_LOG
else else
cp -rfup $HDD_LOG -T $RAM_LOG cp -rfup $HDD_LOG -T $RAM_LOG
@ -19,7 +19,7 @@ case "$1" in
;; ;;
stop) stop)
if [[ "$USE_RSYNC" = true ]]; then if [ "$USE_RSYNC" = true ]; then
rsync -aXWv --delete --links $RAM_LOG $HDD_LOG rsync -aXWv --delete --links $RAM_LOG $HDD_LOG
else else
cp -rfup $RAM_LOG -T $HDD_LOG cp -rfup $RAM_LOG -T $HDD_LOG
@ -29,7 +29,7 @@ case "$1" in
;; ;;
write) write)
if [[ "$USE_RSYNC" = true ]]; then if [ "$USE_RSYNC" = true ]; then
rsync -aXWv --delete --links $RAM_LOG $HDD_LOG rsync -aXWv --delete --links $RAM_LOG $HDD_LOG
else else
cp -rfup $RAM_LOG -T $HDD_LOG cp -rfup $RAM_LOG -T $HDD_LOG