create magic.conf for gentoox pro
create magic.conf for gentoox pro
I was thinking about this and creating this so that you don't have to answre if you want to install kde, xfree, mplayer etc. every time that you run magic. so what when you actually wanted it changed you could edit a file and then run magic..
-
- Gentoox Guru!
- Posts: 1681
- Joined: Sun Sep 28, 2003 11:59 am
- Location: Manchester, UK
Code: Select all
echo alias\ magic=\"yes \\\"no\\\" \| magic\" >> /root/.bash_profile
If you keep an open mind, will your brain fall out?
wow i its been a while since i really heavly used linux.. forgot about bash profile.. (pretty much setup server and left it alone till now really starting to work with gentoox)nobspangle wrote:I haven't tested that you may need less \ around the noCode: Select all
echo alias\ magic="yes \\"no\\" \| magic" >> /root/.bash_profile
thanks for the replies..
The only problem with that i can see is i woudn't want to run sync every time especially since magic updates itself and re-run's itself sometimes after being updated or during some of the updates could run again causing a resync which possibly could lead you to getting temp banned from gentoo's rsync servers.
but it was an idea and shallax said no need. So i will just not be as lazy and type yes,no,no,no a few more times..
/bin/magic-wrapper:
Then, just run: WANTSYNC="yes" magic-wrapper
when you want it to sync.
A bit of a hack, but does the job.
Code: Select all
#!/bin/bash
if [ ! -z $WANTSYNC ]; then
emerge sync
fi
WANTSYNC=""
yes "no" | magic
when you want it to sync.
A bit of a hack, but does the job.
The original Xbox adaptation of Gentoo