From 56a2be328504b9d7e49ee87279c394644f7a3009 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sun, 2 Feb 2020 15:51:22 -0600 Subject: adelie-build-{cd,txz}: Remove vestiges of boxes past --- addgroup | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100755 addgroup (limited to 'addgroup') diff --git a/addgroup b/addgroup deleted file mode 100755 index 051df36..0000000 --- a/addgroup +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh -# addgroup - BusyBox compatibility shim -# bbshim -# -# Copyright © 2017 A. Wilcox. All rights reserved. -# Licensed under the terms of the NCSA Open Source license. -# - -ARG= -CMDLINE= - -while getopts :g:S ARG -do - case $ARG in - g) CMDLINE="$CMDLINE -g \"$OPTARG\"" ;; - S) CMDLINE="$CMDLINE -r" ;; - :) exit 1 ;; - \?) exit 1 ;; - esac -done - -shift $(($OPTIND - 1)) - -if [ -z "$*" ]; then - echo "$0: group name is required" >&2 - exit 1 -fi - -set "$@" - - -if [ -n "$2" ]; then - exec usermod -a -G $2 $1 -fi - -groupadd $CMDLINE $1 -- cgit v1.2.3-70-g09d2