diff options
author | Florent Villard <warly@mandriva.com> | 2003-08-26 11:06:17 +0000 |
---|---|---|
committer | Florent Villard <warly@mandriva.com> | 2003-08-26 11:06:17 +0000 |
commit | 97c3eeb99a45bc2dcdc67d90c161d0e69d3ca153 (patch) | |
tree | 05eda5154ede93f96b451ef9f5272b6b71ebcb25 | |
parent | 07895b95bdff958d1b7189d07957107f27898b1b (diff) | |
download | bootsplash-97c3eeb99a45bc2dcdc67d90c161d0e69d3ca153.tar bootsplash-97c3eeb99a45bc2dcdc67d90c161d0e69d3ca153.tar.gz bootsplash-97c3eeb99a45bc2dcdc67d90c161d0e69d3ca153.tar.bz2 bootsplash-97c3eeb99a45bc2dcdc67d90c161d0e69d3ca153.tar.xz bootsplash-97c3eeb99a45bc2dcdc67d90c161d0e69d3ca153.zip |
set Esc as the key to swich to verbose mode
improve switch-theme so that it can be used in post of mandrake_theme packages
remove images and config files
-rw-r--r-- | Makefile | 8 | ||||
-rw-r--r-- | bootsplash.spec | 35 | ||||
-rw-r--r-- | po/ar.po | 4 | ||||
-rw-r--r-- | po/az.po | 4 | ||||
-rw-r--r-- | po/bg.po | 4 | ||||
-rw-r--r-- | po/bootsplash.pot | 2 | ||||
-rw-r--r-- | po/bs.po | 4 | ||||
-rw-r--r-- | po/cs.po | 4 | ||||
-rw-r--r-- | po/da.po | 4 | ||||
-rw-r--r-- | po/de.po | 2 | ||||
-rw-r--r-- | po/et.po | 2 | ||||
-rw-r--r-- | po/eu.po | 4 | ||||
-rw-r--r-- | po/fa.hack | 4 | ||||
-rw-r--r-- | po/fa.po | 4 | ||||
-rw-r--r-- | po/fi.po | 4 | ||||
-rw-r--r-- | po/fr.po | 4 | ||||
-rw-r--r-- | po/he.po | 4 | ||||
-rw-r--r-- | po/hi.po | 4 | ||||
-rw-r--r-- | po/hu.po | 4 | ||||
-rw-r--r-- | po/lv.po | 4 | ||||
-rw-r--r-- | po/ms.po | 4 | ||||
-rw-r--r-- | po/nl.po | 4 | ||||
-rw-r--r-- | po/pl.po | 4 | ||||
-rw-r--r-- | po/pt.po | 4 | ||||
-rw-r--r-- | po/pt_BR.po | 4 | ||||
-rw-r--r-- | po/ro.po | 4 | ||||
-rw-r--r-- | po/ru.po | 4 | ||||
-rw-r--r-- | po/sk.po | 4 | ||||
-rw-r--r-- | po/sq.po | 4 | ||||
-rw-r--r-- | po/sv.po | 4 | ||||
-rw-r--r-- | po/tr.po | 4 | ||||
-rw-r--r-- | po/uk.po | 4 | ||||
-rw-r--r-- | po/uz.po | 4 | ||||
-rw-r--r-- | po/uz@Cyrl.po | 4 | ||||
-rw-r--r-- | po/vi.po | 4 | ||||
-rw-r--r-- | po/wa.po | 4 | ||||
-rw-r--r-- | po/zh_CN.po | 4 | ||||
-rw-r--r-- | scripts/Makefile | 2 | ||||
-rw-r--r-- | scripts/bootsplash.sysconfig | 4 | ||||
-rw-r--r-- | scripts/splash.sh | 2 | ||||
-rwxr-xr-x | scripts/switch-themes | 40 |
41 files changed, 105 insertions, 120 deletions
@@ -4,9 +4,6 @@ RELEASE := $(shell sed -n 's/%define release //p' < $(NAME).spec) RELTAG := $(shell echo "V$(VERSION)_$(RELEASE)" | tr -- '-.' '__') SUBDIRS=scripts fb fbmngplay fbtruetype splash po -DATADIRS=themes/data/ -CONFIGDIRS=themes/config/ -THEMES=Mandrake prefix=/ sharedir=/usr/share @@ -17,12 +14,7 @@ all: @for i in $(SUBDIRS);do make -C $$i all;done install: - @mkdir -p $(prefix)$(sharedir)/bootsplash/themes/ - @mkdir -p $(prefix)$(configdir)/bootsplash/themes/ @for i in $(SUBDIRS);do make -C $$i install;done - @for i in $(DATADIRS);do for t in $(THEMES); do cp -a $$i/$$t $(prefix)$(sharedir)/bootsplash/themes/;done; done - @for i in $(CONFIGDIRS);do for t in $(THEMES); do install -d $(prefix)/$(configdir)/bootsplash/themes/$$t/config; cp -a $(CONFIGDIRS)/$$t/cfg/* $(prefix)$(configdir)/bootsplash/themes/$$t/config/;done ;done - @for d in 800x600 1024x768; do for v in 1 2 3; do ln -s vt0-$$d.cfg $(prefix)$(configdir)/bootsplash/themes/Mandrake/config/vt$$v-$$d.cfg; done; done dis: clean rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar* diff --git a/bootsplash.spec b/bootsplash.spec index fbdb455..695c9be 100644 --- a/bootsplash.spec +++ b/bootsplash.spec @@ -50,20 +50,6 @@ done %find_lang bootsplash %post -cd %{_bootdir} - if [[ -x /usr/share/loader/make-initrd ]]; then - /usr/share/loader/make-initrd -n &> /dev/null - if [[ -x /usr/sbin/detectloader ]]; then - LOADER=$(/usr/sbin/detectloader -q) - if [[ $LOADER = "LILO" ]] && [[ -x /sbin/lilo ]];then - /sbin/lilo >/dev/null 2>/dev/null - fi - if [[ $LOADER = "YABOOT" ]] && [[ -x /sbin/ybin ]];then - /sbin/ybin >/dev/null 2>/dev/null - fi - fi - fi - # Add right translation file for i in `echo $LANGUAGE:$LC_ALL:$LC_COLLATE:$LANG:C | tr ':' ' '` do @@ -75,22 +61,6 @@ do fi done -%postun -cd %{_bootdir} - if [[ -x /usr/share/loader/make-initrd ]]; then - /usr/share/loader/make-initrd -n &> /dev/null - if [[ -x /usr/sbin/detectloader ]]; then - LOADER=$(/usr/sbin/detectloader -q) - if [[ $LOADER = "LILO" ]] && [[ -x /sbin/lilo ]];then - /sbin/lilo >/dev/null 2>/dev/null - fi - if [[ $LOADER = "YABOOT" ]] && [[ -x /sbin/ybin ]];then - /sbin/ybin >/dev/null 2>/dev/null - fi - fi - fi - - %clean rm -rf $RPM_BUILD_ROOT %files -f %name.lang @@ -98,8 +68,8 @@ rm -rf $RPM_BUILD_ROOT %doc README ChangeLog fbmngplay/ChangeLog.fbmngplay fbmngplay/README.fbmngplay fbtruetype/ChangeLog.fbtruetype fbtruetype/README.fbtruetype %config(noreplace) %{_sysconfdir}/sysconfig/%{name} %_datadir/%{name}/scripts -%_datadir/%{name}/themes/Mandrake -%config(noreplace) %_sysconfdir/%{name}/themes/Mandrake/* +#%_datadir/%{name}/themes/Mandrake +#%config(noreplace) %_sysconfdir/%{name}/themes/Mandrake/* /bin/* /sbin/* %{_bindir}/* @@ -107,6 +77,7 @@ rm -rf $RPM_BUILD_ROOT %changelog * Sat Aug 16 2003 Pablo Saratxaga <pablo@mandrakesoft.com> 2.0.2-1mdk - added support for other fonts, depending on the language +- now themes are in packages provinding mandrake_theme * Fri Aug 01 2003 Warly <warly@mandrakesoft.com> 2.0.1-2mdk - require to initscripts was not correct @@ -19,8 +19,8 @@ msgid "Booting the system..." msgstr "جاري بدء تشغيل النظام..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "اضغط F2 للوضعية المفصلة" +msgid "Press Esc for verbose mode." +msgstr "اضغط Esc للوضعية المفصلة" #: tmp/splash.sh:162 msgid "Shutting down the system..." @@ -18,8 +18,8 @@ msgid "Booting the system..." msgstr "Sistem açılır..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "İnteraktiv mod üçün F2 düyməsinə basın." +msgid "Press Esc for verbose mode." +msgstr "İnteraktiv mod üçün Esc düyməsinə basın." #: tmp/splash.sh:162 msgid "Shutting down the system..." @@ -19,8 +19,8 @@ msgid "Booting the system..." msgstr "Зареждане на системата..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "Натиснете F2 за \"многословен\" режим" +msgid "Press Esc for verbose mode." +msgstr "Натиснете Esc за \"многословен\" режим" #: tmp/splash.sh:162 msgid "Shutting down the system..." diff --git a/po/bootsplash.pot b/po/bootsplash.pot index dbd9031..b64f87d 100644 --- a/po/bootsplash.pot +++ b/po/bootsplash.pot @@ -19,7 +19,7 @@ msgid "Booting the system..." msgstr "" #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." +msgid "Press Esc for verbose mode." msgstr "" #: tmp/splash.sh:162 @@ -18,8 +18,8 @@ msgid "Booting the system..." msgstr "Pokrecem sistem..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "Pritisnite F2 za vise infomracija." +msgid "Press Esc for verbose mode." +msgstr "Pritisnite Esc za vise infomracija." #: tmp/splash.sh:162 msgid "Shutting down the system..." @@ -19,8 +19,8 @@ msgid "Booting the system..." msgstr "Startuji systém..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "Stiskněte F2 pro režim s výpisy." +msgid "Press Esc for verbose mode." +msgstr "Stiskněte Esc pro režim s výpisy." #: tmp/splash.sh:162 msgid "Shutting down the system..." @@ -19,8 +19,8 @@ msgid "Booting the system..." msgstr "Starter systemet op..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "Tryk F2 for informativ tilstand." +msgid "Press Esc for verbose mode." +msgstr "Tryk Esc for informativ tilstand." #: tmp/splash.sh:162 msgid "Shutting down the system..." @@ -18,7 +18,7 @@ msgid "Booting the system..." msgstr "Das System wird gestartet..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." +msgid "Press Esc for verbose mode." msgstr "F2 drücken für den Detailmodus" #: tmp/splash.sh:162 @@ -19,7 +19,7 @@ msgid "Booting the system..." msgstr "Süsteemi käivitamine..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." +msgid "Press Esc for verbose mode." msgstr "F2 rakendab selgitava resiimi" #: tmp/splash.sh:162 @@ -18,8 +18,8 @@ msgid "Booting the system..." msgstr "Sistema abiarazten..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "Sakatu F2 modu berritsurako" +msgid "Press Esc for verbose mode." +msgstr "Sakatu Esc modu berritsurako" #: tmp/splash.sh:162 msgid "Shutting down the system..." @@ -19,8 +19,8 @@ msgid "Booting the system..." msgstr " ...ﻢﺘﺴﻴﺳ ﺯﺎﻏﺁ ﻝﺎﺣ ﺭﺩ" #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr " .ﺪﻴﻫﺩ ﺭﺎﺸﻓ ﺍﺭ F2 ﻰﺤﻳﺮﺸﺗ ﺖﻟﺎﺣ ﻯﺍﺮﺑ" +msgid "Press Esc for verbose mode." +msgstr " .ﺪﻴﻫﺩ ﺭﺎﺸﻓ ﺍﺭ Esc ﻰﺤﻳﺮﺸﺗ ﺖﻟﺎﺣ ﻯﺍﺮﺑ" #: tmp/splash.sh:162 msgid "Shutting down the system..." @@ -19,8 +19,8 @@ msgid "Booting the system..." msgstr "در حال آغاز سیستم..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "برای حالت تشریحی F2 را فشار دهید." +msgid "Press Esc for verbose mode." +msgstr "برای حالت تشریحی Esc را فشار دهید." #: tmp/splash.sh:162 msgid "Shutting down the system..." @@ -20,8 +20,8 @@ msgid "Booting the system..." msgstr "Käynnistetään järjestelmää..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "F2 vaihtaa ykityiskohtaiseen tilaan" +msgid "Press Esc for verbose mode." +msgstr "Esc vaihtaa ykityiskohtaiseen tilaan" #: tmp/splash.sh:162 msgid "Shutting down the system..." @@ -17,8 +17,8 @@ msgid "Booting the system..." msgstr "Démarrage du système..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "Appuyez sur F2 pour le mode détaillé." +msgid "Press Esc for verbose mode." +msgstr "Appuyez sur Esc pour le mode détaillé." #: tmp/splash.sh:162 msgid "Shutting down the system..." @@ -19,8 +19,8 @@ msgid "Booting the system..." msgstr "מאתחל את המערכת...." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "נא ללחוץ F2 עבור מצב מפורט" +msgid "Press Esc for verbose mode." +msgstr "נא ללחוץ Esc עבור מצב מפורט" #: tmp/splash.sh:162 msgid "Shutting down the system..." @@ -19,8 +19,8 @@ msgid "Booting the system..." msgstr "प्रणाली शुरू (बूट) हो रही है..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "वर्णनात्मक विधा के लिए F2 कुज़ीं को दबायें" +msgid "Press Esc for verbose mode." +msgstr "वर्णनात्मक विधा के लिए Esc कुज़ीं को दबायें" #: tmp/splash.sh:162 msgid "Shutting down the system..." @@ -18,8 +18,8 @@ msgid "Booting the system..." msgstr "Rendszerindítás..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "Részletes információkért nyomja le az F2 billentyűt." +msgid "Press Esc for verbose mode." +msgstr "Részletes információkért nyomja le az Esc billentyűt." #: tmp/splash.sh:162 msgid "Shutting down the system..." @@ -18,8 +18,8 @@ msgid "Booting the system..." msgstr "Startēju sistēmu..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "Nospiediet F2 izvērstam režīmam." +msgid "Press Esc for verbose mode." +msgstr "Nospiediet Esc izvērstam režīmam." #: tmp/splash.sh:162 msgid "Shutting down the system..." @@ -19,8 +19,8 @@ msgid "Booting the system..." msgstr "Memboot sistem..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "Tekan F2 untuk mod verbose." +msgid "Press Esc for verbose mode." +msgstr "Tekan Esc untuk mod verbose." #: tmp/splash.sh:162 msgid "Shutting down the system..." @@ -19,8 +19,8 @@ msgid "Booting the system..." msgstr "Systeem opstarten..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "Druk op F2 voor 'veel informatie' modus" +msgid "Press Esc for verbose mode." +msgstr "Druk op Esc voor 'veel informatie' modus" #: tmp/splash.sh:162 msgid "Shutting down the system..." @@ -18,8 +18,8 @@ msgid "Booting the system..." msgstr "Uruchamianie systemu..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "Naciśnij F2 aby przejśc do trybu informacyjnego." +msgid "Press Esc for verbose mode." +msgstr "Naciśnij Esc aby przejśc do trybu informacyjnego." #: tmp/splash.sh:162 msgid "Shutting down the system..." @@ -19,8 +19,8 @@ msgid "Booting the system..." msgstr "A iniciar o sistema..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "Carregue em F2 para o modo detalhado." +msgid "Press Esc for verbose mode." +msgstr "Carregue em Esc para o modo detalhado." #: tmp/splash.sh:162 msgid "Shutting down the system..." diff --git a/po/pt_BR.po b/po/pt_BR.po index 6735f41..1a8829a 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -19,8 +19,8 @@ msgid "Booting the system..." msgstr "Iniciando o sistema..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "Acione F2 para ver mensagens" +msgid "Press Esc for verbose mode." +msgstr "Acione Esc para ver mensagens" #: tmp/splash.sh:162 msgid "Shutting down the system..." @@ -19,8 +19,8 @@ msgid "Booting the system..." msgstr "Pornesc sistemul..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "Apăsați F2 pentru mod detaliat." +msgid "Press Esc for verbose mode." +msgstr "Apăsați Esc pentru mod detaliat." #: tmp/splash.sh:162 msgid "Shutting down the system..." @@ -20,8 +20,8 @@ msgid "Booting the system..." msgstr "Загружаем систему..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "Нажмите F2 для подробного режима." +msgid "Press Esc for verbose mode." +msgstr "Нажмите Esc для подробного режима." #: tmp/splash.sh:162 msgid "Shutting down the system..." @@ -16,8 +16,8 @@ msgid "Booting the system..." msgstr "Systém sa spúšťa..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "Stlačte F2 ak chcete vidieť výpisy." +msgid "Press Esc for verbose mode." +msgstr "Stlačte Esc ak chcete vidieť výpisy." #: tmp/splash.sh:162 msgid "Shutting down the system..." @@ -18,8 +18,8 @@ msgid "Booting the system..." msgstr "Rinisja e sistemit..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "Shtypeni F2 për mode detaje." +msgid "Press Esc for verbose mode." +msgstr "Shtypeni Esc për mode detaje." #: tmp/splash.sh:162 msgid "Shutting down the system..." @@ -19,8 +19,8 @@ msgid "Booting the system..." msgstr "Startar systemet..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "Tryck på F2 för utförligt läge." +msgid "Press Esc for verbose mode." +msgstr "Tryck på Esc för utförligt läge." #: tmp/splash.sh:162 msgid "Shutting down the system..." @@ -19,8 +19,8 @@ msgid "Booting the system..." msgstr "Sistem başlatılıyor..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "Ayrıntılı kip için F2 tuşuna basın." +msgid "Press Esc for verbose mode." +msgstr "Ayrıntılı kip için Esc tuşuna basın." #: tmp/splash.sh:162 msgid "Shutting down the system..." @@ -20,8 +20,8 @@ msgid "Booting the system..." msgstr "Завантажується система..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "Натисніть F2 для детального режиму." +msgid "Press Esc for verbose mode." +msgstr "Натисніть Esc для детального режиму." #: tmp/splash.sh:162 msgid "Shutting down the system..." @@ -19,8 +19,8 @@ msgid "Booting the system..." msgstr "Sistema yuklanmoqda..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "Batafsil usuli uchun F2 tugmasini bosing." +msgid "Press Esc for verbose mode." +msgstr "Batafsil usuli uchun Esc tugmasini bosing." #: tmp/splash.sh:162 msgid "Shutting down the system..." diff --git a/po/uz@Cyrl.po b/po/uz@Cyrl.po index 8831f1f..277c1ae 100644 --- a/po/uz@Cyrl.po +++ b/po/uz@Cyrl.po @@ -19,8 +19,8 @@ msgid "Booting the system..." msgstr "Система юкланмоқда..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "Батафсил усули учун F2 тугмасини босинг." +msgid "Press Esc for verbose mode." +msgstr "Батафсил усули учун Esc тугмасини босинг." #: tmp/splash.sh:162 msgid "Shutting down the system..." @@ -18,8 +18,8 @@ msgid "Booting the system..." msgstr "Đang kh?i d?ng h? th?ng..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "Nh?n F2 cho phuong th?c verbose." +msgid "Press Esc for verbose mode." +msgstr "Nh?n Esc cho phuong th?c verbose." #: tmp/splash.sh:162 msgid "Shutting down the system..." @@ -18,8 +18,8 @@ msgid "Booting the system..." msgstr "Enondant l' éndjole..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "Tchôkîz so F2 pol môde badjawe." +msgid "Press Esc for verbose mode." +msgstr "Tchôkîz so Esc pol môde badjawe." #: tmp/splash.sh:162 msgid "Shutting down the system..." diff --git a/po/zh_CN.po b/po/zh_CN.po index 77c8aae..fd85a07 100644 --- a/po/zh_CN.po +++ b/po/zh_CN.po @@ -18,8 +18,8 @@ msgid "Booting the system..." msgstr "正在启动系统..." #: tmp/splash.sh:172 -msgid "Press F2 for verbose mode." -msgstr "按 F2 键以显示详细信息" +msgid "Press Esc for verbose mode." +msgstr "按 Esc 键以显示详细信息" #: tmp/splash.sh:162 msgid "Shutting down the system..." diff --git a/scripts/Makefile b/scripts/Makefile index 9c86f0f..c82b9db 100644 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -1,5 +1,5 @@ PL=detect-resolution -SH=make-boot-splash rewritejpeg switch-themes +SH=make-boot-splash rewritejpeg switch-themes remove-theme SBIN=splash.sh SYS=bootsplash.sysconfig diff --git a/scripts/bootsplash.sysconfig b/scripts/bootsplash.sysconfig index 0217535..4a61577 100644 --- a/scripts/bootsplash.sysconfig +++ b/scripts/bootsplash.sysconfig @@ -8,11 +8,11 @@ # # SPLASH=INT When Integer could be 800x600 1024x768 1280x1024 1600x1200 # -SPLASH=auto +SPLASH=no # Choose the themes. The should be based in # /usr/share/bootsplash/themes/ -THEME=Mandrake +THEME= # Say yes here if you want to leave the logo on the console. # Three options : diff --git a/scripts/splash.sh b/scripts/splash.sh index 5bb4bb4..d200b12 100644 --- a/scripts/splash.sh +++ b/scripts/splash.sh @@ -184,7 +184,7 @@ if [ "$progress" == 1 -o "$1" == "start" ]; then _boot=$TEXT if [ "$text_x" != "" -a "$text_y" != "" \ -a "$text_color" != "" -a "$text_size" != "" -a "$_silent" == "yes" ]; then - gprintf "Press F2 for verbose mode." + gprintf "Press Esc for verbose mode." fbtruetype.static -x $text_x -y $text_y -t $text_color -s $text_size \ $custom_font "$_boot $TEXT" fi diff --git a/scripts/switch-themes b/scripts/switch-themes index 3492e09..273044c 100755 --- a/scripts/switch-themes +++ b/scripts/switch-themes @@ -40,23 +40,22 @@ function lilo_switch_themes () { if [[ ! -f $message_from_theme ]];then return; fi - if [[ ! -e $bootdir/lilo ]];then + if [[ ! -e $bootdir/message ]];then return; fi #Make sure to point on lilo-graphic - if [[ -L $bootdir/lilo ]];then - point_to=$(read_link $bootdir/lilo) + if [[ -L $bootdir/message ]];then + point_to=$(read_link $bootdir/message) if [[ $point_to != lilo-graphic ]];then - rm -f $bootdir/lilo - ln -s lilo-graphic $bootdir/lilo + rm -f $bootdir/message + ln -s lilo-graphic $bootdir/message fi fi if ! cmp -s $message_from_theme $message_from_current;then cp -f $message_from_theme $message_from_current fi - } function check_it () { @@ -89,6 +88,11 @@ function switch_theme () { tmpfile=$(mktemp /tmp/.bootsplash.XXXXXXX) cp -f $sysconfig $tmpfile && rm -f $sysconfig while read line;do + if [[ $line == SPLASH=* ]];then + echo "SPLASH=auto" >> $sysconfig + ok=yes + continue; + fi if [[ $line == THEME=* ]];then echo "THEME=$toswitch" >> $sysconfig ok=yes @@ -100,13 +104,30 @@ function switch_theme () { echo "THEME=$toswitch" >> $sysconfig fi rm -f $tmpfile - if [[ -d /etc/bootsplash/$toswitch ]]; then - rm -f /etc/bootsplash/current - ln -s /etc/bootsplash/$toswitch current + if [[ -d /etc/bootsplash/themes/$toswitch ]]; then + rm -f /etc/bootsplash/themes/current + ln -s /etc/bootsplash/themes/$toswitch current fi fi } +function update_boot () { + pushd /boot &> /dev/null + if [[ -x /usr/share/loader/make-initrd ]]; then + /usr/share/loader/make-initrd -n &> /dev/null + if [[ -x /usr/sbin/detectloader ]]; then + LOADER=$(/usr/sbin/detectloader -q) + if [[ $LOADER = "LILO" ]] && [[ -x /sbin/lilo ]];then + /sbin/lilo >/dev/null 2>/dev/null + fi + if [[ $LOADER = "YABOOT" ]] && [[ -x /sbin/ybin ]];then + /sbin/ybin >/dev/null 2>/dev/null + fi + fi + fi + popd &> /dev/null +} + function usage () { basename=`basename $0` cat <<EOF @@ -154,3 +175,4 @@ fi check_it $theme switch_theme $theme +update_boot |