Files
Arch-R/packages/sysutils/busybox/install

68 lines
1.9 KiB
Plaintext
Raw Normal View History

2009-03-18 13:02:53 +01:00
#!/bin/sh
. config/options
$SCRIPTS/build busybox-hosttools
$SCRIPTS/install Linux-PAM
2009-03-18 13:02:53 +01:00
PKG_DIR=`find $PACKAGES -type d -name $1`
ROOT_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw $ROOT_PASSWORD`"
2010-03-16 11:33:16 +01:00
USER_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw $USER_PASSWORD`"
2009-03-18 13:02:53 +01:00
add_user root "$ROOT_PWD" 0 0 "Root User" "/storage" "/bin/sh"
add_group root 0
2010-04-26 18:21:49 +02:00
add_group users 100
2010-03-16 11:33:16 +01:00
add_user $USER_NAME "$USER_PWD" 1000 1000 "User" "/storage" "/bin/sh"
add_group $USER_GROUP 1000
cp -PR $BUILD/busybox*/_install-system/* $INSTALL
echo "chmod 4755 $INSTALL/bin/busybox" >> $FAKEROOT_SCRIPT
2009-08-09 01:33:43 +02:00
2009-03-18 13:02:53 +01:00
mkdir -p $INSTALL/bin
cp $PKG_DIR/scripts/lsb-release $INSTALL/bin/
mkdir -p $INSTALL/sbin
cp $PKG_DIR/scripts/init $INSTALL/sbin/
2009-03-18 13:02:53 +01:00
mkdir -p $INSTALL/etc
cp $PKG_DIR/config/profile $INSTALL/etc
2010-05-13 10:46:14 +02:00
# /etc/fstab is needed by...
2009-12-29 19:38:55 +01:00
touch $INSTALL/etc/fstab
2010-05-13 10:46:14 +02:00
# /etc/resolve.conf and /etc/hosts must be writeable
ln -sf /var/cache/hosts $INSTALL/etc/hosts
ln -sf /var/cache/resolv.conf $INSTALL/etc/resolv.conf
2010-05-13 10:46:14 +02:00
# /etc/mtab is needed by udisks etc...
ln -sf /proc/mounts $INSTALL/etc/mtab
2010-05-13 10:46:14 +02:00
# create /etc/hostname
echo $HOSTNAME > $INSTALL/etc/hostname
2010-05-13 10:46:14 +02:00
# create /etc/issue
echo $GREATING0 > $INSTALL/etc/issue
echo $GREATING1 >> $INSTALL/etc/issue
echo $GREATING2 >> $INSTALL/etc/issue
echo $GREATING3 >> $INSTALL/etc/issue
echo $GREATING4 >> $INSTALL/etc/issue
2009-03-18 13:02:53 +01:00
# acpid specific
2009-05-01 19:40:33 +02:00
mkdir -p $INSTALL/etc/acpi/PWRF
cp $PKG_DIR/scripts/acpi_powerbtn $INSTALL/etc/acpi/PWRF/00000080
mkdir -p $INSTALL/etc/network
cp $PKG_DIR/config/interfaces $INSTALL/etc/network
# mkdir -p $INSTALL/usr/config
# cp $PKG_DIR/config/network.conf $INSTALL/usr/config
2010-05-13 10:46:14 +02:00
mkdir -p $INSTALL/usr/share/udhcpc
cp $PKG_DIR/scripts/udhcp.script $INSTALL/usr/share/udhcpc/default.script
# we need an full-featured grep and bash for pm-utils, so we install this :-(
$SCRIPTS/install grep
$SCRIPTS/install bash