Merge pull request #2 from nishad-prime/feature

alpha 0.1.1
This commit is contained in:
Nasir Hossain Nishad 2024-02-17 01:44:26 +06:00 committed by GitHub
commit 4ba07987c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,8 +8,26 @@ mount -t devtmpfs none /dev
mount -t proc none /dev
mount -t sysfs none /sys
# Start shell
/bin/sh
clear
# Shutdown the machine when shell is exited
poweroff -f
# Print the welcome message
echo "Welcome to the Linux Kernel"
echo ""
echo ""
echo " ___ ___ ___ ";
echo " | __|__ _ / _ \/ __|";
echo " | _|/ _\` | (_) \__ \\";
echo " |___\__, |\___/|___/";
echo " |___/ ";
echo "Is Built Successfully!";
echo ""
echo ""
echo "Kernel Version: $(uname -r)"
echo "Kernel Build Date: $(uname -v)"
echo "Kernel Architecture: $(uname -m)"
echo "Kernel Compiler: $(uname -o)"
echo "Kernel Hostname: $(uname -n)"
# Start shell with proper tty and power off support
exec cttyhack sh