Created
February 16, 2024 10:52
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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