motd for mesh clients

This commit is contained in:
Bob Mottram 2016-06-24 12:20:05 +01:00
parent 0206945fac
commit ac39c27ec8
1 changed files with 14 additions and 2 deletions

View File

@ -195,8 +195,9 @@ iface eth0 inet static
sed -i "s/nameserver.*/nameserver $NAMESERVER1/g" $rootdir/etc/resolv.conf sed -i "s/nameserver.*/nameserver $NAMESERVER1/g" $rootdir/etc/resolv.conf
sed -i "/nameserver $NAMESERVER1/a\nameserver $NAMESERVER2" $rootdir/etc/resolv.conf sed -i "/nameserver $NAMESERVER1/a\nameserver $NAMESERVER2" $rootdir/etc/resolv.conf
# change the motd to show further install instructions if [[ $VARIANT != "meshclient" && $VARIANT != "meshusb" ]]; then
echo $" # change the motd to show further install instructions
echo $"
.---. . . .---. . .
| | | | | |
|--- .--. .-. .-. .-.| .-. .--.--. |.-. .-. .--. .-. |--- .--. .-. .-. .-.| .-. .--.--. |.-. .-. .--. .-.
@ -212,6 +213,17 @@ following commands, then enter your details.
${PROJECT_NAME} menuconfig ${PROJECT_NAME} menuconfig
" > $rootdir/etc/motd " > $rootdir/etc/motd
else
echo $"
.---. . .
| | |
|--- .--. .-. .-. .-.| .-. .--.--. |.-. .-. .--. .-.
| | (.-' (.-' ( | ( )| | | | )( )| | (.-'
' ' --' --' -' - -' ' ' -' -' -' ' - --'
Freedom in the Mesh
" > $rootdir/etc/motd
fi
} }
configure_ssh() { configure_ssh() {