Atlas - init

Home / systems / linux / kernel / vega / fs Lines: 1 | Size: 1959 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)]
[FILE BEGIN]
1#!/bin/sh 2# SPDX-License-Identifier: GPL-3.0 3# V/UX 4# 5# init 6# 7# COPYRIGHT NOTICE 8# Copyright (C) 2025 0x4248 and contributors 9# Redistribution and use in source and binary forms, with or without 10# modification, are permitted provided that the license is not changed. 11# 12# This software is free and open source. Licensed under the GNU general 13# public license version 3.0 as published by the Free Software Foundation. 14 15 16clear 17 18echo "Welcome to V/UX" 19 20mkdir /proc /sys /tmp /mnt 21mount -t proc none /proc 22mount -t sysfs none /sys 23mount -t tmpfs none /tmp 24mount -t devtmpfs none /dev 25 26echo -e "\e[44m" 27 28echo "+-------------------+" 29echo "| V/UX SYSTEM 1 |" 30echo "| 4248 Systems |" 31echo "+-------------------+" 32 33echo -e "\e[0m" 34 35echo "(C) 2025 0x4248 and contributors" 36echo "(C) 2025 4248 Systems, A Division of 0x4248" 37echo "Licensed under GNU GPL v3.0" 38echo "" 39echo "Welcome to V/UX please mount a stage 2 system disk to continue." 40 41export PS1="V/UX (NO DISK) # " 42 43mkdir /mnt 44 45echo "Found the following disks:" 46ls /dev/*da* 47 48echo "Please enter the disk to mount:" 49read disk 50 51 52 53if [ -z "$disk" ]; then 54 echo "No disk specified, exiting." 55 /bin/sh 56fi 57 58echo "Mounting disk $disk" 59mount /dev/$disk /mnt 60echo "Disk mounted to /mnt" 61PS1="V/UX ($disk) # " 62 63echo "Leaving stage 1 to fully enter stage 2" 64mkdir -p /mnt/proc /mnt/sys /mnt/tmp /mnt/mnt 65mount -t proc none /mnt/proc 66mount -t sysfs none /mnt/sys 67mount -t tmpfs none /mnt/tmp 68mount -t devtmpfs none /mnt/dev 69 70# set /mnt to / 71cd /mnt 72mount --bind /mnt /mnt 73mount --make-rslave /mnt 74 75# set /mnt/dev to /dev 76cd /mnt/dev 77mount --bind /dev /mnt/dev 78mount --make-rslave /mnt/dev 79 80# set /mnt/proc to /proc 81cd /mnt/proc 82mount --bind /proc /mnt/proc 83mount --make-rslave /mnt/proc 84 85# set /mnt/sys to /sys 86cd /mnt/sys 87mount --bind /sys /mnt/sys 88mount --make-rslave /mnt/sys 89 90# set /mnt/tmp to /tmp 91cd /mnt/tmp 92mount --bind /tmp /mnt/tmp 93mount --make-rslave /mnt/tmp 94 95echo "Entering stage 2" 96chroot /mnt /bin/sh 97
[FILE END]
(C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.