summaryrefslogtreecommitdiff
path: root/main/busybox/busybox.post-install
blob: f575396bb1a66c0a4f07c838ee908fc08201cc2d (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/busybox sh

# We need the symlinks early
/bin/busybox mkdir -p "/bin" "/sbin" "/usr/bin" "/usr/sbin"
/bin/busybox --install -s || exit 1

# can't be in pre-install since adduser/group may not available then
addgroup -S klogd 2>/dev/null
adduser -S -D -H -h /dev/null -s /sbin/nologin -G klogd -g klogd klogd 2>/dev/null

exit 0