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 CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.11 - 2026-09-20
4
+
5
+ - Emergency fix: multicall.sh on Buninu Linux
6
+ * /proc/$$/cmdline: /bin/bun /bin/sh ...
7
+
3
8
  ## 0.4.10 - 2026-09-20
4
9
 
5
10
  ### Fixed
package/bin/bunmsh.sh CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  sd=$(dirname "$(realpath "$0")")
4
4
 
5
- exec bun "$sd"/../apps/bunmsh/bunmsh "$@"
5
+ exec bun "$sd"/../apps/bunmsh/index.js "$@"
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=$(echo "$args" | head -n 1)
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.10",
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/bunmsh -c 'exec bunmsh'",
56
+ "local": "bun ./apps/bunmsh/index.js -c 'exec bunmsh'",
57
57
  "check": "node --check ./bin/init.js"
58
58
  }
59
59
  }