diff options
author | dzwdz | 2023-02-25 19:18:33 +0100 |
---|---|---|
committer | dzwdz | 2023-02-25 19:18:33 +0100 |
commit | 51c39c73692e755596eafb0d6f732581fee3ba98 (patch) | |
tree | dfb79d40b193474dc89a474bdaa5b64d6285e5d8 /sysroot | |
parent | 1326ab41a907ad95405cc86d932b3fc47c614c1c (diff) |
merge the initrd and sysroot directories
Diffstat (limited to 'sysroot')
-rw-r--r-- | sysroot/Users/dzwdz/private/secrets.txt | 2 | ||||
-rw-r--r-- | sysroot/Users/dzwdz/public/stuff.txt | 2 | ||||
-rw-r--r-- | sysroot/bin/sh/fib | 10 | ||||
-rw-r--r-- | sysroot/bin/sh/halt | 2 | ||||
-rw-r--r-- | sysroot/bin/sh/mkuser | 7 | ||||
-rw-r--r-- | sysroot/usr/arp.ether | bin | 0 -> 64 bytes | |||
-rw-r--r-- | sysroot/usr/long.txt | 7 |
7 files changed, 30 insertions, 0 deletions
diff --git a/sysroot/Users/dzwdz/private/secrets.txt b/sysroot/Users/dzwdz/private/secrets.txt new file mode 100644 index 0000000..7f1bcbc --- /dev/null +++ b/sysroot/Users/dzwdz/private/secrets.txt @@ -0,0 +1,2 @@ +I enjoyed Twilight. + diff --git a/sysroot/Users/dzwdz/public/stuff.txt b/sysroot/Users/dzwdz/public/stuff.txt new file mode 100644 index 0000000..b864fc2 --- /dev/null +++ b/sysroot/Users/dzwdz/public/stuff.txt @@ -0,0 +1,2 @@ +A publicly readable file. + diff --git a/sysroot/bin/sh/fib b/sysroot/bin/sh/fib new file mode 100644 index 0000000..6d84b1b --- /dev/null +++ b/sysroot/bin/sh/fib @@ -0,0 +1,10 @@ +#!/bin/lua + +function fib(n) + if n <= 1 then return 1 end + return fib(n-1) + fib(n-2) +end + +for i=1,13 do + print("fib("..i..")\t= " .. fib(i)) +end diff --git a/sysroot/bin/sh/halt b/sysroot/bin/sh/halt new file mode 100644 index 0000000..563aded --- /dev/null +++ b/sysroot/bin/sh/halt @@ -0,0 +1,2 @@ +#!/bin/shell +echo halt > /initctl
\ No newline at end of file diff --git a/sysroot/bin/sh/mkuser b/sysroot/bin/sh/mkuser new file mode 100644 index 0000000..a1544c6 --- /dev/null +++ b/sysroot/bin/sh/mkuser @@ -0,0 +1,7 @@ +#!/bin/shell +touch /Users/user/ +cd /Users/user/ +touch private/ +echo secrets! > private/secret.txt +touch public/ +echo no secrets here > public/hi.txt
\ No newline at end of file diff --git a/sysroot/usr/arp.ether b/sysroot/usr/arp.ether Binary files differnew file mode 100644 index 0000000..c8fbec7 --- /dev/null +++ b/sysroot/usr/arp.ether diff --git a/sysroot/usr/long.txt b/sysroot/usr/long.txt new file mode 100644 index 0000000..ed0b66a --- /dev/null +++ b/sysroot/usr/long.txt @@ -0,0 +1,7 @@ +this file is longer than 512 characters. each line is exactly 80 characters long +01234567890123456789012345678901234567890123456789012345678901234567890123456789 +0 10 20 30 40 50 60 70 80 +for this file to be over 512 bytes, it needs 512/81 = 7 lines. that's a fun fact + ,_____O> [duck sound] | that's as good of a duck as i can make. it's very good +~|____| | /-- this X is the 513th byte in this file. very coolio + | | ,. . ., , ., | X. here it is. what you've waited for. idk what to say |