From 60d288a877a3671ea5b3483ed7c4612ec897b99a Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sun, 1 Dec 2013 19:25:01 -0600 Subject: remove type command The posix equivalent of the type command is "command -v", so now we use that. Thanks to Jonathan Callen for informing me wrt the fix. --- init.d/bootmisc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init.d/bootmisc.in') diff --git a/init.d/bootmisc.in b/init.d/bootmisc.in index 526ebfff..1b35a0a6 100644 --- a/init.d/bootmisc.in +++ b/init.d/bootmisc.in @@ -68,7 +68,7 @@ cleanup_var_run_dir() do # Clean stale sockets if [ -S "$x" ]; then - if type fuser >/dev/null 2>&1; then + if command -v fuser >/dev/null 2>&1; then fuser "$x" >/dev/null 2>&1 || rm -- "$x" else rm -- "$x" -- cgit v1.2.3