From 32c4cb66820d483d90480de113a5d1329058f2ef Mon Sep 17 00:00:00 2001 From: Anjandev Momi Date: Sun, 31 Jan 2021 15:15:30 -0500 Subject: [PATCH] Alias all coreutils programs to busybox Signed-off-by: Anjandev Momi Signed-off-by: Maarten van Gompel --- scripts/core/sxmo_common.sh | 303 ++++++++++++++++++++++++++++++++++++ 1 file changed, 303 insertions(+) create mode 100644 scripts/core/sxmo_common.sh diff --git a/scripts/core/sxmo_common.sh b/scripts/core/sxmo_common.sh new file mode 100644 index 0000000..33be11b --- /dev/null +++ b/scripts/core/sxmo_common.sh @@ -0,0 +1,303 @@ +#!/usr/bin/env sh + +# This script ensures all sxmo scripts are using the busybox version of +# coreutils rather than any other version that may be installed on the +# user's computer + + +alias acpid="busybox acpid" +alias add-shell="busybox shell" +alias addgroup="busybox addgroup" +alias adduser="busybox adduser" +alias adjtimex="busybox adjtimex" +alias arch="busybox arch" +alias arp="busybox arp" +alias arping="busybox arping" +alias ash="busybox ash" +alias awk="busybox awk" +alias base64="busybox base64" +alias basename="busybox basename" +alias bbconfig="busybox bbconfig" +alias bc="busybox bc" +alias beep="busybox beep" +alias blkdiscard="busybox blkdiscard" +alias blkid="busybox blkid" +alias blockdev="busybox blockdev" +alias brctl="busybox brctl" +alias bunzip2="busybox bunzip2" +alias bzcat="busybox bzcat" +alias bzip2="busybox bzip2" +alias cal="busybox cal" +alias cat="busybox cat" +alias chgrp="busybox chgrp" +alias chmod="busybox chmod" +alias chown="busybox chown" +alias chpasswd="busybox chpasswd" +alias chroot="busybox chroot" +alias chvt="busybox chvt" +alias cksum="busybox cksum" +alias clear="busybox clear" +alias cmp="busybox cmp" +alias comm="busybox comm" +alias cp="busybox cp" +alias cpio="busybox cpio" +alias crond="busybox crond" +alias crontab="busybox crontab" +alias cryptpw="busybox cryptpw" +alias cut="busybox cut" +alias date="busybox date" +alias dc="busybox dc" +alias dd="busybox dd" +alias deallocvt="busybox deallocvt" +alias delgroup="busybox delgroup" +alias deluser="busybox deluser" +alias depmod="busybox depmod" +alias df="busybox df" +alias diff="busybox diff" +alias dirname="busybox dirname" +alias dmesg="busybox dmesg" +alias dnsdomainname="busybox dnsdomainname" +alias dos2unix="busybox dos2unix" +alias du="busybox du" +alias dumpkmap="busybox dumpkmap" +alias echo="busybox echo" +alias ed="busybox ed" +alias egrep="busybox egrep" +alias eject="busybox eject" +alias env="busybox env" +alias ether-wake="busybox wake" +alias expand="busybox expand" +alias expr="busybox expr" +alias factor="busybox factor" +alias fallocate="busybox fallocate" +alias false="busybox false" +alias fatattr="busybox fatattr" +alias fbset="busybox fbset" +alias fbsplash="busybox fbsplash" +alias fdflush="busybox fdflush" +alias fdisk="busybox fdisk" +alias fgrep="busybox fgrep" +alias find="busybox find" +alias findfs="busybox findfs" +alias flock="busybox flock" +alias fold="busybox fold" +alias free="busybox free" +alias fsck="busybox fsck" +alias fstrim="busybox fstrim" +alias fsync="busybox fsync" +alias fuser="busybox fuser" +alias getopt="busybox getopt" +alias getty="busybox getty" +alias grep="busybox grep" +alias groups="busybox groups" +alias gunzip="busybox gunzip" +alias gzip="busybox gzip" +alias halt="busybox halt" +alias hd="busybox hd" +alias head="busybox head" +alias hexdump="busybox hexdump" +alias hostid="busybox hostid" +alias hostname="busybox hostname" +alias hwclock="busybox hwclock" +alias id="busybox id" +alias ifconfig="busybox ifconfig" +alias ifdown="busybox ifdown" +alias ifenslave="busybox ifenslave" +alias ifup="busybox ifup" +alias init="busybox init" +alias inotifyd="busybox inotifyd" +alias insmod="busybox insmod" +alias install="busybox install" +alias ionice="busybox ionice" +alias iostat="busybox iostat" +alias ip="busybox ip" +alias ipaddr="busybox ipaddr" +alias ipcalc="busybox ipcalc" +alias ipcrm="busybox ipcrm" +alias ipcs="busybox ipcs" +alias iplink="busybox iplink" +alias ipneigh="busybox ipneigh" +alias iproute="busybox iproute" +alias iprule="busybox iprule" +alias iptunnel="busybox iptunnel" +alias kbd_mode="busybox mode" +alias kill="busybox kill" +alias killall, killall5="busybox killall5" +alias klogd="busybox klogd" +alias less="busybox less" +alias link="busybox link" +alias linux32="busybox linux32" +alias linux64="busybox linux64" +alias ln="busybox ln" +alias loadfont="busybox loadfont" +alias loadkmap="busybox loadkmap" +alias logger="busybox logger" +alias login="busybox login" +alias logread="busybox logread" +alias losetup="busybox losetup" +alias ls="busybox ls" +alias lsmod="busybox lsmod" +alias lsof="busybox lsof" +alias lsusb="busybox lsusb" +alias lzcat="busybox lzcat" +alias lzma="busybox lzma" +alias lzop="busybox lzop" +alias lzopcat="busybox lzopcat" +alias makemime="busybox makemime" +alias md5sum="busybox md5sum" +alias mdev="busybox mdev" +alias mesg="busybox mesg" +alias microcom="busybox microcom" +alias mkdir="busybox mkdir" +alias mkdosfs="busybox mkdosfs" +alias mkfifo="busybox mkfifo" +alias mkfs.vfat="busybox mkfs.vfat" +alias mknod="busybox mknod" +alias mkpasswd="busybox mkpasswd" +alias mkswap="busybox mkswap" +alias mktemp="busybox mktemp" +alias modinfo="busybox modinfo" +alias modprobe="busybox modprobe" +alias more="busybox more" +alias mount="busybox mount" +alias mountpoint="busybox mountpoint" +alias mpstat="busybox mpstat" +alias mv="busybox mv" +alias nameif="busybox nameif" +alias nanddump="busybox nanddump" +alias nandwrite="busybox nandwrite" +alias nbd-client="busybox nbd" +alias nc="busybox nc" +alias netstat="busybox netstat" +alias nice="busybox nice" +alias nl="busybox nl" +alias nmeter="busybox nmeter" +alias nohup="busybox nohup" +alias nologin="busybox nologin" +alias nproc="busybox nproc" +alias nsenter="busybox nsenter" +alias nslookup="busybox nslookup" +alias ntpd="busybox ntpd" +alias od="busybox od" +alias openvt="busybox openvt" +alias partprobe="busybox partprobe" +alias passwd="busybox passwd" +alias paste="busybox paste" +alias pgrep="busybox pgrep" +alias pidof="busybox pidof" +alias ping="busybox ping" +alias ping6="busybox ping6" +alias pipe_progress="busybox pipe" +alias pivot_root="busybox pivot" +alias pkill="busybox pkill" +alias pmap="busybox pmap" +alias poweroff="busybox poweroff" +alias printenv="busybox printenv" +alias printf="busybox printf" +alias ps="busybox ps" +alias pscan="busybox pscan" +alias pstree="busybox pstree" +alias pwd="busybox pwd" +alias pwdx="busybox pwdx" +alias raidautorun="busybox raidautorun" +alias rdate="busybox rdate" +alias rdev="busybox rdev" +alias readahead="busybox readahead" +alias readlink="busybox readlink" +alias realpath="busybox realpath" +alias reboot="busybox reboot" +alias reformime="busybox reformime" +alias remove-shell="busybox remove-shell" +alias renice="busybox renice" +alias reset="busybox reset" +alias resize="busybox resize" +alias rev="busybox rev" +alias rfkill="busybox rfkill" +alias rm="busybox rm" +alias rmdir="busybox rmdir" +alias rmmod="busybox rmmod" +alias route="busybox route" +alias run-parts="busybox run" +alias sed="busybox sed" +alias sendmail="busybox sendmail" +alias seq="busybox seq" +alias setconsole="busybox setconsole" +alias setfont="busybox setfont" +alias setkeycodes="busybox setkeycodes" +alias setlogcons="busybox setlogcons" +alias setpriv="busybox setpriv" +alias setserial="busybox setserial" +alias setsid="busybox setsid" +alias sh="busybox sh" +alias sha1sum="busybox sha1sum" +alias sha256sum="busybox sha256sum" +alias sha3sum="busybox sha3sum" +alias sha512sum="busybox sha512sum" +alias showkey="busybox showkey" +alias shred="busybox shred" +alias shuf="busybox shuf" +alias slattach="busybox slattach" +alias sleep="busybox sleep" +alias sort="busybox sort" +alias split="busybox split" +alias stat="busybox stat" +alias strings="busybox strings" +alias stty="busybox stty" +alias su="busybox su" +alias sum="busybox sum" +alias swapoff="busybox swapoff" +alias swapon="busybox swapon" +alias switch_root="busybox switch" +alias sync="busybox sync" +alias sysctl="busybox sysctl" +alias syslogd="busybox syslogd" +alias tac="busybox tac" +alias tail="busybox tail" +alias tar="busybox tar" +alias tee="busybox tee" +alias test="busybox test" +alias time="busybox time" +alias timeout="busybox timeout" +alias top="busybox top" +alias touch="busybox touch" +alias tr="busybox tr" +alias traceroute="busybox traceroute" +alias traceroute6="busybox traceroute6" +alias true="busybox true" +alias truncate="busybox truncate" +alias tty="busybox tty" +alias ttysize="busybox ttysize" +alias tunctl="busybox tunctl" +alias udhcpc="busybox udhcpc" +alias udhcpc6="busybox udhcpc6" +alias umount="busybox umount" +alias uname="busybox uname" +alias unexpand="busybox unexpand" +alias uniq="busybox uniq" +alias unix2dos="busybox unix2dos" +alias unlink="busybox unlink" +alias unlzma="busybox unlzma" +alias unlzop="busybox unlzop" +alias unshare="busybox unshare" +alias unxz="busybox unxz" +alias unzip="busybox unzip" +alias uptime="busybox uptime" +alias usleep="busybox usleep" +alias uudecode="busybox uudecode" +alias uuencode="busybox uuencode" +alias vconfig="busybox vconfig" +alias vi="busybox vi" +alias vlock="busybox vlock" +alias volname="busybox volname" +alias watch="busybox watch" +alias watchdog="busybox watchdog" +alias wc="busybox wc" +alias wget="busybox wget" +alias which="busybox which" +alias whoami="busybox whoami" +alias whois="busybox whois" +alias xargs="busybox xargs" +alias xxd="busybox xxd" +alias xzcat="busybox xzcat" +alias yes="busybox yes" +alias zca="busybox zca"