2018-11-09 03:25:31 +03:00
|
|
|
rm -vf _fs_contents.lock
|
|
|
|
rm -vf _fs_contents
|
|
|
|
cp -vp _fs_contents.stock _fs_contents
|
|
|
|
mkdir -vp mnt
|
2018-10-23 11:12:50 +03:00
|
|
|
mount -o loop _fs_contents mnt/
|
2018-11-17 00:14:40 +03:00
|
|
|
mkdir -vp mnt/dev
|
|
|
|
mknod mnt/dev/tty0 c 4 0
|
|
|
|
mknod mnt/dev/tty1 c 4 1
|
|
|
|
mknod mnt/dev/tty2 c 4 2
|
|
|
|
mknod mnt/dev/tty3 c 4 3
|
2019-01-16 19:20:58 +03:00
|
|
|
mknod mnt/dev/keyboard c 85 1
|
2019-01-14 16:21:51 +03:00
|
|
|
mknod mnt/dev/psaux c 10 1
|
2019-01-16 15:36:10 +03:00
|
|
|
mknod mnt/dev/ptmx c 5 2
|
2019-01-30 02:49:20 +03:00
|
|
|
mkdir mnt/dev/pts
|
2019-01-14 16:21:51 +03:00
|
|
|
mknod mnt/dev/gui_events c 66 1
|
2019-02-03 14:38:03 +03:00
|
|
|
ln -s /proc/self/fd/0 mnt/dev/stdin
|
|
|
|
ln -s /proc/self/fd/1 mnt/dev/stdout
|
|
|
|
ln -s /proc/self/fd/2 mnt/dev/stderr
|
2019-01-30 22:40:41 +03:00
|
|
|
cp -vR ../Base/* mnt/
|
|
|
|
chown -vR 100:100 mnt/users/anon
|
2018-11-09 03:25:31 +03:00
|
|
|
cp -v ../Userland/sh mnt/bin/sh
|
|
|
|
cp -v ../Userland/id mnt/bin/id
|
|
|
|
cp -v ../Userland/ps mnt/bin/ps
|
|
|
|
cp -v ../Userland/ls mnt/bin/ls
|
2018-11-11 22:42:41 +03:00
|
|
|
cp -v ../Userland/fgrep mnt/bin/fgrep
|
2018-11-09 03:25:31 +03:00
|
|
|
cp -v ../Userland/sleep mnt/bin/sleep
|
|
|
|
cp -v ../Userland/date mnt/bin/date
|
|
|
|
cp -v ../Userland/true mnt/bin/true
|
|
|
|
cp -v ../Userland/false mnt/bin/false
|
|
|
|
cp -v ../Userland/hostname mnt/bin/hostname
|
|
|
|
cp -v ../Userland/cat mnt/bin/cat
|
|
|
|
cp -v ../Userland/uname mnt/bin/uname
|
|
|
|
cp -v ../Userland/clear mnt/bin/clear
|
|
|
|
cp -v ../Userland/tst mnt/bin/tst
|
|
|
|
cp -v ../Userland/mm mnt/bin/mm
|
|
|
|
cp -v ../Userland/kill mnt/bin/kill
|
|
|
|
cp -v ../Userland/tty mnt/bin/tty
|
2018-11-18 16:57:41 +03:00
|
|
|
cp -v ../Userland/mkdir mnt/bin/mkdir
|
2018-12-19 23:14:55 +03:00
|
|
|
cp -v ../Userland/touch mnt/bin/touch
|
2018-12-20 02:39:29 +03:00
|
|
|
cp -v ../Userland/sync mnt/bin/sync
|
2018-12-21 04:42:30 +03:00
|
|
|
cp -v ../Userland/more mnt/bin/more
|
2019-01-22 09:03:44 +03:00
|
|
|
cp -v ../Userland/rm mnt/bin/rm
|
2019-01-28 06:16:01 +03:00
|
|
|
cp -v ../Userland/rmdir mnt/bin/rmdir
|
2019-01-27 09:18:26 +03:00
|
|
|
cp -v ../Userland/cp mnt/bin/cp
|
2019-01-13 03:59:38 +03:00
|
|
|
cp -v ../Userland/guitest mnt/bin/guitest
|
2019-01-20 07:48:43 +03:00
|
|
|
cp -v ../Userland/guitest2 mnt/bin/guitest2
|
2019-01-18 17:35:38 +03:00
|
|
|
cp -v ../Userland/sysctl mnt/bin/sysctl
|
2019-01-15 06:30:55 +03:00
|
|
|
cp -v ../Terminal/Terminal mnt/bin/Terminal
|
2019-02-02 10:05:14 +03:00
|
|
|
cp -v ../FontEditor/FontEditor mnt/bin/FontEditor
|
2019-02-08 01:13:47 +03:00
|
|
|
cp -v ../Launcher/Launcher mnt/bin/Launcher
|
2019-02-05 11:44:13 +03:00
|
|
|
cp -v ../Clock/Clock mnt/bin/Clock
|
2019-02-02 10:05:14 +03:00
|
|
|
ln -s FontEditor mnt/bin/ff
|
2019-02-05 11:44:13 +03:00
|
|
|
ln -s Clock mnt/bin/cl
|
2019-01-29 00:40:55 +03:00
|
|
|
cp -v ../Userland/dmesg mnt/bin/dmesg
|
2019-01-29 06:55:08 +03:00
|
|
|
cp -v ../Userland/chmod mnt/bin/chmod
|
2019-02-04 12:28:12 +03:00
|
|
|
cp -v ../Userland/top mnt/bin/top
|
2018-10-31 19:50:43 +03:00
|
|
|
sh sync-local.sh
|
2018-11-09 03:25:31 +03:00
|
|
|
cp -v kernel.map mnt/
|
2018-11-29 05:45:23 +03:00
|
|
|
ln -s dir_a mnt/dir_cur
|
|
|
|
ln -s nowhere mnt/bad_link
|
2018-10-23 11:12:50 +03:00
|
|
|
umount mnt
|
|
|
|
sync
|