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

Группа :: Система/Настройка/Прочее
Пакет: coldreboot

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

pax_global_header00006660000000000000000000000064121326431350014512gustar00rootroot0000000000000052 comment=27fde41be9e04b066a498c861f9106b379769040
coldreboot-0.2/000075500000000000000000000000001213264313500135055ustar00rootroot00000000000000coldreboot-0.2/.gear/000075500000000000000000000000001213264313500145015ustar00rootroot00000000000000coldreboot-0.2/.gear/rules000064400000000000000000000000071213264313500155530ustar00rootroot00000000000000tar: .
coldreboot-0.2/Makefile000064400000000000000000000004001213264313500151370ustar00rootroot00000000000000CFLAGS=-Os
all: coldreboot

install: coldreboot
install -D -m744 coldreboot $(DESTDIR)/usr/sbin/coldreboot
ln -s coldreboot $(DESTDIR)/usr/sbin/coldhalt

install -D -m744 rc.halt $(DESTDIR)/etc/rc.d/rc.halt
ln -s rc.halt $(DESTDIR)/etc/rc.d/rc.reboot
coldreboot-0.2/coldreboot.c000064400000000000000000000003621213264313500160060ustar00rootroot00000000000000#include <unistd.h>
#include <sys/reboot.h>

#define strstr __builtin_strstr

int main(int argc, char *argv[])
{
if(strstr(argv[0], "coldreboot"))
reboot(RB_AUTOBOOT);
if(strstr(argv[0], "coldhalt"))
reboot(RB_POWER_OFF);
_exit(1);
}
coldreboot-0.2/coldreboot.spec000064400000000000000000000024211213264313500165140ustar00rootroot00000000000000Name: coldreboot
Version: 0.2
Release: alt2.qa1

Summary: Tool to halt and reboot very fast
License: GPL
Group: System/Configuration/Other

Packager: Lenar Shakirov <snejok@altlinux.org>

Source: %name-%version.tar

%description
Tool to halt and reboot very fast

Provides %_sbindir/cold{halt,reboot}.

%prep
%setup

%build
make

%install
%makeinstall_std

%files
%_sbindir/coldreboot
%_sbindir/coldhalt
%_sysconfdir/rc.d/rc.halt
%_sysconfdir/rc.d/rc.reboot

%changelog
* Mon Apr 15 2013 Dmitry V. Levin (QA) <qa_ldv@altlinux.org> 0.2-alt2.qa1
- NMU: rebuilt for debuginfo.

* Tue Jun 01 2010 Lenar Shakirov <snejok@altlinux.ru> 0.2-alt2
- Spec cleaned: thanks to rpmcs

* Tue Mar 30 2010 Lenar Shakirov <snejok@altlinux.ru> 0.2-alt1
- Emulation of SysVinit-usermode was deleted

* Mon Dec 29 2008 Lenar Shakirov <snejok@altlinux.ru> 0.1-alt5
- Unmounting /dev/hd* and /dev/sd* devices

* Mon Oct 20 2008 Lenar Shakirov <snejok@altlinux.ru> 0.1-alt4
- Unmounting only /mnt/hd*

* Mon Oct 20 2008 Lenar Shakirov <snejok@altlinux.ru> 0.1-alt3
- Unmounting /mnt/root/* and /mnt/hd*

* Mon Oct 20 2008 Lenar Shakirov <snejok@altlinux.ru> 0.1-alt2
- Cleaned up spec
+ New packager: me
+ New summary
+ New description

* Tue Oct 24 2006 Alex V. Myltsev <avm@altlinux.ru> 0.1-alt1
- Initial build

coldreboot-0.2/rc.halt000075500000000000000000000003041213264313500147630ustar00rootroot00000000000000#!/bin/sh

umount -fln /dev/hd* &>/dev/null
umount -fln /dev/sd* &>/dev/null
blockdev --flushbufs /dev/hd* &>/dev/null
blockdev --flushbufs /dev/sd* &>/dev/null
sync; sleep 1; sync
cold${0##*rc.}
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin