#! /bin/sh

if isi services -a lwswift | grep enabled; then
    touch /tmp/patch-lwswift
    echo "disabling lwswift service"
    isi services -a lwswift disable
    sleep 10
    if pgrep swift; then
	echo "swift running, killing swift"
	pkill swift
    fi
else
    rm -f /tmp/patch-lwswift
fi
