View Single Post
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#4
This is great.

Does discussion about an enhanced busybox installer script go here or in the previous thread?

If so...

run as root:
#!/bin/sh
#create dirs
mkdir /home/bb
cd /home/bb
#get binary
wget http://enhanced_binary
#double check permissions
chmod +x ./busybox
#copy to bin
cp /home/bb/busybox /bin
#create symlinks in temp dir
/bin/busybox --install -s /home/bb/
#here comes the pain
yes n | cp -P -r -i /home/bb/* /bin
#punch it chewie!
cd ~
#remove temp dir of crap
rm -r /home/bb/*
DO NOT RUN THIS SCRIPT! It is just an idea.

I think the cp is set to copy the symlinks and not the source however I am not sure...
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.

Last edited by vi_; 2011-05-05 at 15:25.
 

The Following 2 Users Say Thank You to vi_ For This Useful Post: