forked from mirrors/openup
Simplify.
This commit is contained in:
parent
76effd5e72
commit
4e3508c8eb
1 changed files with 1 additions and 6 deletions
7
openup
7
openup
|
|
@ -260,12 +260,6 @@ while getopts 'KSc' arg; do
|
||||||
done
|
done
|
||||||
[ $# = $(($OPTIND-1)) ] || usage
|
[ $# = $(($OPTIND-1)) ] || usage
|
||||||
|
|
||||||
if [ "${checkmode}" ]; then
|
|
||||||
if [ -n "${nosig}" ]; then
|
|
||||||
usage
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -f ${_PID} ]; then
|
if [ -f ${_PID} ]; then
|
||||||
pr_err "openup is already running ($(cat ${_PID})):"
|
pr_err "openup is already running ($(cat ${_PID})):"
|
||||||
pr_err "${_PID}"
|
pr_err "${_PID}"
|
||||||
|
|
@ -273,6 +267,7 @@ if [ -f ${_PID} ]; then
|
||||||
fi
|
fi
|
||||||
echo $$ >${_PID}
|
echo $$ >${_PID}
|
||||||
|
|
||||||
|
[ -n "${checkmode}" -a -n "${nosig}" ] && usage
|
||||||
check_openupd
|
check_openupd
|
||||||
|
|
||||||
if [ -n "${exclude_kernel}" ]; then
|
if [ -n "${exclude_kernel}" ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue