mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
50 lines
1.4 KiB
Bash
Executable File
50 lines
1.4 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
. config/options
|
|
|
|
$SCRIPTS/build busybox-hosttools
|
|
|
|
PKG_DIR=`find $PACKAGES -type d -name $1`
|
|
|
|
ROOT_PWD="`$ROOT/$TOOLCHAIN/bin/mkpasswd $ROOT_PASSWORD`"
|
|
|
|
add_user root "$ROOT_PWD" 0 0 "Root User" "/storage" "/bin/sh"
|
|
add_group root 0
|
|
|
|
cp -PR $BUILD/busybox*/_install-system/* $INSTALL
|
|
chmod 4755 $INSTALL/bin/busybox
|
|
|
|
mkdir -p $INSTALL/bin
|
|
ln -sf /bin/sh $INSTALL/bin/bash
|
|
|
|
mkdir -p $INSTALL/usr/config
|
|
touch $INSTALL/usr/config/fstab
|
|
|
|
mkdir -p $INSTALL/etc
|
|
cp $PKG_DIR/config/sysconfig $INSTALL/etc
|
|
ln -s /storage/.config/fstab $INSTALL/etc/fstab
|
|
|
|
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
|
|
|
|
mkdir -p $INSTALL/usr/share/udhcpc
|
|
cp $PKG_DIR/scripts/udhcp.script $INSTALL/usr/share/udhcpc/default.script
|
|
|
|
mkdir -p $INSTALL/sbin
|
|
cp $PKG_DIR/scripts/init $INSTALL/sbin/init.system
|
|
|
|
# acpid specific
|
|
mkdir -p $INSTALL/etc/acpi/PWRF
|
|
cp $PKG_DIR/scripts/acpi_powerbtn $INSTALL/etc/acpi/PWRF/00000080
|
|
|
|
mkdir -p $INSTALL/usr/config
|
|
# cp $PKG_DIR/config/interfaces $INSTALL/usr/config
|
|
touch $INSTALL/usr/config/resolv.conf
|
|
|
|
mkdir -p $INSTALL/etc/network
|
|
# ln -s /storage/.config/interfaces $INSTALL/etc/network/interfaces
|
|
ln -s /storage/.config/resolv.conf $INSTALL/etc/resolv.conf
|