uci-edit-server/restart

6 lines
189 B
Plaintext
Raw Normal View History

#!/bin/bash
[[ ! $1 ]] && echo "no editor set, usage restart <editor>" && exit
SDIR=$(cd $(dirname $(readlink -f "$0")) >/dev/null 2>&1 ; pwd -P)
source $SDIR/stop $1
source $SDIR/start $1