Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grubeditor: modify the grub.conf from the shell
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Cagnulein
l33t
l33t


Joined: 18 Sep 2003
Posts: 861
Location: Modena, Italy

PostPosted: Thu Aug 19, 2004 11:00 am    Post subject: grubeditor: modify the grub.conf from the shell Reply with quote

grubeditor by "Cagnulein"
test version

Object
grubeditor is a tool that allows you to change the grub.conf directly from the shell. It usefull when you have a bash script that have to modify the grub.conf (a makekernel script :) ).

Usage
Help is avaiable launching:
Code:
./grubeditor.py --help


there are 3 actions avaiable:
    - create
    - modify
    - erase


a simple create command could be:
Code:
./grubeditor.py -c --title=NewTitile --root=NewRoot --initrd=NewInitrd --kernel=kernel

this command create a new profile called newtitle at the end of the grub file

a simple modify command could be:
Code:
./grubeditor.py --modify=1 --title=newTitle

this command modify the second profile chaning the title with newTitle

a simple erase command could be:
Code:
./grubeditor.py --erase=1

this command erase the second profile in the grub.conf


Download

Rember: It's a test version!
anyway a backup file will be created on every execution of this program

P.S. Sorry for my poor english but I'm italian
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum