milis/bin/dracut-guncelle

27 lines
552 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sh
# dracut ve modulleri için geerekli güncelleme betiği
dracutmilisrepo="https://github.com/milisarge/dracut-milis"
dracutmilis="/opt/dracut-milis"
dracut_guncelle(){
moduller_guncelle
echo "dracut güncellendi."
}
moduller_guncelle(){
cp -rf $dracutmilis/moduller/* /usr/lib/dracut/modules.d/
echo "modüller güncellendi."
}
if [ -d $dracutmilis ];then
dracut_guncelle
else
echo "dracut-milis klonlanıyor."
git clone $dracutmilisrepo $dracutmilis
echo "dracut-milis klonlandı."
[ -d $dracutmilis ] && dracut_guncelle
fi