buninu 0.4.10 → 0.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/bin/bunmsh.sh +1 -1
- package/bin/multicall.sh +12 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/bin/bunmsh.sh
CHANGED
package/bin/multicall.sh
CHANGED
|
@@ -2,7 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
if [ -f /proc/$$/cmdline ] ; then
|
|
4
4
|
args=$(tr '\0' '\n' < /proc/$$/cmdline)
|
|
5
|
-
caller=$(
|
|
5
|
+
caller=$(printf '%s\n' "$args" | head -n 1)
|
|
6
|
+
|
|
7
|
+
# Buninu Linux implements /bin/sh in Bun. Its interpreter chain makes the
|
|
8
|
+
# first three cmdline entries /bin/bun, /bin/sh, and the invoked launcher;
|
|
9
|
+
# Android's native loader instead keeps the launcher in the first entry.
|
|
10
|
+
# Match only the exact Buninu chain so the existing Android and conventional
|
|
11
|
+
# Linux paths retain their current behaviour.
|
|
12
|
+
second=$(printf '%s\n' "$args" | head -n 2 | tail -n 1)
|
|
13
|
+
if [ "$caller" = /bin/bun ] && [ "$second" = /bin/sh ] ; then
|
|
14
|
+
caller=$(printf '%s\n' "$args" | head -n 3 | tail -n 1)
|
|
15
|
+
fi
|
|
16
|
+
|
|
6
17
|
callerb=$(basename "$caller")
|
|
7
18
|
else
|
|
8
19
|
callerb=$(basename "$0")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "buninu",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.11",
|
|
4
4
|
"description": "Buninu is a portable, self-bootstrapping Unix-like userspace built on Bun that runs across operating systems",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./bin/init.js",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"start": "bun ./apps/jsgotty/gotty.js --reconnect -r -w --webgl -a 127.0.0.1",
|
|
56
|
-
"local": "bun ./apps/bunmsh/
|
|
56
|
+
"local": "bun ./apps/bunmsh/index.js -c 'exec bunmsh'",
|
|
57
57
|
"check": "node --check ./bin/init.js"
|
|
58
58
|
}
|
|
59
59
|
}
|