#!/bin/sh
# Copyright (C) 2000-2016 Synology Inc. All rights reserved.

### This script will be execute when package installed and upgraded.
### Actions before package installed.
### ex. check environment.

res=$(ps -e | grep SyncoveryRS | grep ./ 2>&1)

/usr/syno/bin/synologset1 sys info 0x11100000 "[SyncoveryRS] Status before installation: $res"

echo "[SyncoveryRS] Status before installation:" >>"$SYNOPKG_PKGDEST"/log.txt
echo "$res" >>"$SYNOPKG_PKGDEST"/log.txt

exit 0
