10 eval "export -- \"$var=\${$var:+\${$var}\${value:+\$sep}}\$value\""
14 if [ -d /lib
/modules
/$
(uname
-r) ]; then
15 (sed "s,^[^#][^[:space:]]*,insmod /lib/modules/$(uname -r)/&.ko," $
* | sh
2>&- ||
:)
20 grep -q "^$1:" $IPKG_INSTROOT/etc
/passwd
2>&-
24 grep -q "^$1:" $IPKG_INSTROOT/etc
/group
2>&-
28 grep -q "^$1[[:space:]]*$2" $IPKG_INSTROOT/etc
/services
2>&-
32 grep -q "^#*$1=" $IPKG_INSTROOT/etc
/rc.conf
2>&-
37 echo "adding user $1 to /etc/passwd"
38 echo "$1:x:$2:${3:-$2}:$1:${4:-/tmp}:${5:-/bin/false}" \
39 >>$IPKG_INSTROOT/etc
/passwd
45 echo "adding group $1 to /etc/group"
46 echo "$1:x:$2:$3" >>$IPKG_INSTROOT/etc
/group
51 service_exists
$1 $2 ||
{
52 echo "adding service $1 to /etc/services"
53 printf '%s\t%s\n' "$1" "$2" >>$IPKG_INSTROOT/etc
/services
59 echo "adding service $1 to /etc/rc.conf"
60 printf '%s="%s"\n' "${1}" "${2:-NO}" \
61 >>$IPKG_INSTROOT/etc
/rc.conf
67 while grep "^[^:]*:[^:]*:$uid:" $IPKG_INSTROOT/etc
/passwd \
76 while grep "^[^:]*:[^:]*:$gid:" $IPKG_INSTROOT/etc
/group \