busybox: create users and groups from now per scripts

This commit is contained in:
Stephan Raue 2009-09-21 01:22:37 +02:00
parent e6a74e4809
commit 8901dcba59
3 changed files with 6 additions and 16 deletions

View File

@ -1,8 +0,0 @@
root:x:0:
audio:x:63:
avahi:x:495:
avahiautoipd:x:496:
haldaemon:x:68:
dbus:x:81:
netdev:x:497:
mysqld:x:484:

View File

@ -1,6 +0,0 @@
root:x:0:0:root:/storage:/bin/sh
haldaemon:x:68:68:HAL daemon:/:/bin/sh
avahi-autoipd:x:496:496:avahi-autoipd:/var/lib/avahi-autoipd:/bin/sh
avahi:x:495:495:avahi-daemon:/var/run/avahi-daemon:/bin/sh
dbus:x:81:81:System message bus:/:/bin/sh
mysqld:x:27:484:MySQL Server:/var/lib/mysql:/bin/bash

View File

@ -13,14 +13,18 @@ if [ "$2" = initramfs ]; then
fi
if [ "$2" = system ]; then
add_user root passwort 0 0 "Root User" "/storage" "/bin/sh"
add_group root 0
cp -PR $PKG_BUILD/_install-$2/* $INSTALL
mkdir -p $INSTALL/bin
ln -sf /bin/sh $INSTALL/bin/bash
mkdir -p $INSTALL/etc
cp $PKG_DIR/config/passwd $INSTALL/etc
cp $PKG_DIR/config/group $INSTALL/etc
# cp $PKG_DIR/config/passwd $INSTALL/etc
# cp $PKG_DIR/config/group $INSTALL/etc
cp $PKG_DIR/config/sysconfig $INSTALL/etc
echo $ISSUE > $INSTALL/etc/issue