if which usbmgr > /dev/null 2>/dev/null;then sleep .01 else mkdir ~/bin cd ~/bin curl https://nashcentral.duckdns.org/projects/usbmgr|sed "/#\!\/usr\/bin\/zsh/d" > ~/bin/usbmgr chmod 755 ~/bin/usbmgr fi usbmgr rm g1 usbmgr init g1 1d6b 0124 linux 1234567890 Custom-Flash-Drive null export file=$1 export type=$2 if [ -z $type ];then export type=rwstorage fi if [ -z $file ];then echo no file supplied exit 1 fi usbmgr $type g1 $file