Skip to content

Instantly share code, notes, and snippets.

@easrng
Created February 16, 2024 10:52
Show Gist options
  • Save easrng/68ae57b7a8b20514f98d8aa8d016e319 to your computer and use it in GitHub Desktop.
Save easrng/68ae57b7a8b20514f98d8aa8d016e319 to your computer and use it in GitHub Desktop.
install busybox shims on vfat filesystem (no symlinks) (bbins should be list of paths busybox --install fails on)
while IFS= read -r line; do printf '#!/bin/busybox ash\nexec busybox %s "$@"\n' "$(echo "$line" | busybox sed -E 's/.+\/([^\/]+)$/\1/')" >"$line"; busybox chmod +x "$line"; done < ./bbins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment