summaryrefslogtreecommitdiffstats
path: root/ship/lib
diff options
context:
space:
mode:
Diffstat (limited to 'ship/lib')
-rw-r--r--ship/lib/core5
1 files changed, 4 insertions, 1 deletions
diff --git a/ship/lib/core b/ship/lib/core
index d6e01352..9a8f2265 100644
--- a/ship/lib/core
+++ b/ship/lib/core
@@ -56,7 +56,6 @@ line_to_dot(){
while read line; do printf .; done;
}
-
get_os()
{
# TODO: find all the release files
@@ -74,3 +73,7 @@ get_os()
echo 'linux'
fi
}
+# user management
+has_user(){
+ egrep "^$1:" /etc/passwd >/dev/null
+}