Edit Grub (Shell)

#!/bin/bash
#edittampilan
#(C) Ana arthdi Putra 2011, contoh script buat para Development Linux
#file ini adalah public domain, silahkan mendistribusikan kembali
#atau mengubahnya asalkan anda mengikuti aturan – aturan dari GPL atau bacah di bawah ini
#http://creativecommons.org/licenses/by-sa/3.0/ agar anda tidak menjadi orang pembajak

ulang=’y’
while [ $ulang == ‘y’ ] || [ $ulang == ‘Y’ ]
do

echo -e ” 33[32;1;36m”
echo ” ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^”;
echo ” < ______________ INPUT REPOSITORY LOCAL ______________^";
echo " < Creator : Anna Arthdi Putra ^ ";
echo " < Job : Mahasiswa ^";
echo " < Scholl : STTA ( Sekolah Tinggi Adisudjipto ) ^ ";
echo " < email : aerdy4@gmail.com ^";
echo " < ym : annaarthdi ^";
echo " < Skype : aerdy44 ^";
echo " < Blog : aerdy.wordpress.com ^";
echo " >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>”;
echo ” “;
echo ” “;
echo ” Note : – Di Edit Boleh Tapi Baca Licensi di bawah ini”;
echo ” http://creativecommons.org/licenses/by-sa/3.0/ “;
echo ” Agar Anda tidak Terjerumus”;

echo -n ” Waktu System Anda : “; date
echo -e ” 33[32;1;32m”
echo -n ” Selamat Datang “; whoami
echo “”;
echo ” 1. Edit Grub “;
echo ” 2. Tambah Gambar di Grub “;
echo ” 3. Merubah Tampilan GDM “;
echo ” 4. Menon Aktifkan Layar Login”;
read -p ” pilih menu = ” pil

if [ $pil -eq 1 ];
then
sudo gedit /boot/grub/grub.cfg

elif [ $pil -eq 2 ];
then
echo ” Ketik Alamat URL Gambar yang anda inginkan.jpeg ex : /home/aerdy/namafile.jpeg”;
read url;
sudo cp $url /boot/grub ;
elif [ $pil -eq 3 ];
then
echo ” _ _ _ __ Selerah Mengaktifkan Layar Login Restart _ _ _ _ _ _ _ _”;
echo ” dan Kembali Ke program ini lagi dan pilih No 4″;
echo ” apakah anda setuju y/t”;
read log;
sudo cp /usr/share/applications/gnome-appearance-properties.desktop /usr/share/gdm/autostart/LoginWindow ;

elif [ $pil -eq 4 ];
then
sudo unlink /usr/share/gdm/autostart/LoginWindow/gnome-appearance-properties.desktop
else
echo “”;
exit 0 ;

fi

echo ” Kembali Ke Menu Utama y/t”;
read ulang;
done

#Copyleft (C) Anna arthdi putra 2011

Download Projectnya di Sini

Advertisements

Published by

jarcode

hello I am jarcode

2 thoughts on “Edit Grub (Shell)”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s