Updates on the bundle boot messages.

This commit is contained in:
Ivan Davidov 2017-12-04 02:57:06 +02:00
parent 636173632a
commit 090cc988b2
5 changed files with 30 additions and 23 deletions

View File

@ -1,9 +1,7 @@
#!/bin/sh
cat << CEOF
Starting Dropbear SSH server.
CEOF
dropbear
cat << CEOF
 Dropbear SSH server has been started.
CEOF

View File

@ -1,22 +1,18 @@
#!/bin/sh
# This sample command loads German keyboard layout on boot.
#
# loadkeys de
# The default keyboard which is set on boot.
loadkeys de
cat << CEOF
The default keyboard layout is English (US). You can
change the keyboard layout to German like this:
 The default keyboard layout is English (US). You can change the keyboard
layout to German (for example) like this:
loadkeys de
You can go back to the original US keyboard layout
like this:
You can go back to the original US keyboard layout like this:
loadkeys us
Alternatively, change the file '90_kbd.sh' in the
'kbd' bundle and set the layout you want to use.
Alternatively, change the file '90_kbd.sh' in the 'kbd' bundle and set the
keyboard layout you want to use on boot.
CEOF

View File

@ -0,0 +1,9 @@
#!/bin/sh
# This sample command loads German keyboard layout on boot.
#
# loadkeys de
cat << CEOF
 You can find all sources in '/usr/src'.
CEOF

View File

@ -10,6 +10,7 @@ cd $WORK_DIR/overlay/$BUNDLE_NAME
rm -rf $DEST_DIR
mkdir -p $DEST_DIR/usr/src
mkdir -p $DEST_DIR/etc/autorun
# Copy all source files and folders to 'work/src'.
cp $MAIN_SRC_DIR/*.sh $DEST_DIR/usr/src
@ -20,6 +21,8 @@ cp -r $MAIN_SRC_DIR/minimal_rootfs $DEST_DIR/usr/src
cp -r $MAIN_SRC_DIR/minimal_overlay $DEST_DIR/usr/src
cp -r $MAIN_SRC_DIR/minimal_config $DEST_DIR/usr/src
cp $SRC_DIR/90_src.sh $DEST_DIR/etc/autorun
cd $DEST_DIR/usr/src
# Delete the '.gitignore' files which we use in order to keep track of otherwise
@ -30,6 +33,9 @@ find * -type f -name '.gitignore' -exec rm {} +
# '$OVERLAY_ROOTFS' will be overwritten correctly.
cp -r --remove-destination $DEST_DIR/* \
$OVERLAY_ROOTFS
cp -r --remove-destination $DEST_DIR/* \
$OVERLAY_ROOTFS
echo "Bundle '$BUNDLE_NAME' has been installed."

View File

@ -1,9 +1,7 @@
#!/bin/sh
cat << CEOF
Starting 'nweb' on port 80. Serving '/srv/www'.
CEOF
nweb 80 /srv/www
cat << CEOF
 'nweb' has been started on port 80, serving '/srv/www'.
CEOF