This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
#!/bin/sh
PID=$(pgrep offlineimap)
#FPID=$(pgrep imapfilter)
WPID=$(pgrep wvdial)
if [ -n "$PID" ] ; then
echo "It’s up :-P"
exit 1
fi
# UMTS Syncing once…
if [ -n "$WPID" ] ; then
echo Syncing once!
offlineimap -o -u Noninteractive.Quiet &>/dev/null &
exit 0
#imapfilter &> /dev/null
offlineimap -u Noninteractive.Quiet &>/dev/null &