Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37510454
en ru br
Репозитории ALT

Группа :: Система/X11
Пакет: livecd-install-wmaker

 Главная   Изменения   Спек   Патчи   Исходники   Загрузить   Gear   Bugs and FR  Repocop 

livecd-install-wmaker-0.4/000075500000000000000000000000001212216413200155435ustar00rootroot00000000000000livecd-install-wmaker-0.4/livecd-install-wmaker.init000075500000000000000000000031731212216413200226350ustar00rootroot00000000000000#!/bin/sh
#
# livecd-install-wmaker Tweak wmaker for the livecd-install button
#
# chkconfig: 345 05 95
# description: aimed at livecd use

# Do not load RH compatibility interface.
WITHOUT_RC_COMPAT=1

# Source function library.
. /etc/init.d/functions

LOCKFILE=/var/lock/subsys/livecd-install-wmaker
RETVAL=0

prefix="/etc/X11/WindowMaker"
script="/usr/share/WindowMaker/autostart.d/style.sh"

start()
{
echo -n "Configuring WindowMaker: "

sed -i -f - "$prefix/WMWindowAttributes" << EOF
/^{/a\ Logo.ALTLinux = {Icon="/usr/share/design/current/icons/large/altlinux.png"; };
EOF
# operate on the Dock section, append another one to Applications
sed -i -f - "$prefix/WMState" << EOF
/^ Dock = {$/,/^ Clip = {$/ s/ }$/&,\\
{\\
Name = Logo.ALTLinux;\\
Lock = Yes;\\
AutoLaunch = No;\\
Command = "livecd-install";\\
DropCommand = "livecd-install %d";\\
Position = "0,2";\\
Forced = No;\\
BuggyApplication = No;\\
}/
EOF
# generate the script to set more compatible default style
cat > "$script" << EOF
#!/bin/sh
setstyle /usr/share/WindowMaker/Styles/Traditional.style
sleep 1 # racey...
exec setstyle /usr/share/WindowMaker/Styles/Traditional.style
EOF
chmod +x "$script"

RETVAL=$?
[ $RETVAL = 0 ] && echo_success || echo_failure
return $RETVAL
}

# See how we were called.
case "$1" in
start|restart|reload)
start
;;
stop)
;;
condstop)
;;
condrestart|condreload)
if [ -e "$LOCKFILE" ]; then
start
fi
;;
status)
;;
*)
msg_usage "${0##*/} {start|stop|reload|restart|condstop|condrestart|condreload|status}"
RETVAL=1
esac

exit $RETVAL
livecd-install-wmaker-0.4/livecd-install-wmaker.service000064400000000000000000000004561212216413200233300ustar00rootroot00000000000000[Unit]
Description=Configure WindowMaker for livecd-install
DefaultDependencies=no
RequiresMountsFor=/etc
Before=prefdm.service

[Service]
Type=oneshot
ExecStart=/etc/init.d/livecd-install-wmaker start
ExecStop=/etc/init.d/livecd-install-wmaker stop
TimeoutSec=10

[Install]
WantedBy=multi-user.target
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin