25 lines
508 B
Bash
Executable File
25 lines
508 B
Bash
Executable File
#!/bin/sh
|
|
# This script is executed inside the image chroot before packing up.
|
|
# Architecture/platform specific code goes here, like kernel install
|
|
# and configuration
|
|
|
|
env-update
|
|
. /etc/profile
|
|
|
|
# enable sshd by default
|
|
rc-update add sshd default
|
|
|
|
# select the first available kernel
|
|
eselect uimage set 1
|
|
|
|
# setup root password to... root!
|
|
echo root:root | chpasswd
|
|
# cleaning up deps
|
|
rc-update --update
|
|
|
|
# Setup serial login
|
|
echo "s0:12345:respawn:/sbin/agetty 115200 ttyO0 vt100" >> /etc/inittab
|
|
|
|
exit 0
|
|
|