Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Access busybox commands when there is no writeable disk.
- #
- # NB: you probably only want one _or_ the other of these.
- #
- # First create bash-style functions, second aliases.
- busy2function () {
- busybox --list | printf( "alias %s=" "\x22" "busybox %s" "\x22" ";\n", $1, $1 )}'
- }
- eval $(busy2alias)
- busy2function () {
- busybox --list |
- busybox awk '{printf( "function %s () { busybox %s $*; };\n", $1, $1 )}'
- }
- eval $(busy2function)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement