File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #!/usr/bin/execlineb -P
2+ 66-boot -b "Booting Voidlinux" -m
Original file line number Diff line number Diff line change 1+ [main]
2+ @type = longrun
3+ @version = @VERSION@
4+ @description = "runit"
5+ @user = (root)
6+ @options = ( log )
7+
8+ [start]
9+ @execute = ( /etc/runit/2 )
10+
11+ [stop]
12+ @execute = ( exec-cmdline -s { sv force-stop /var/service/*; sv exit /var/service/* } )
13+
14+ [logger]
15+ @backup = 3
16+ @maxsize = 1000000
Original file line number Diff line number Diff line change 1+ # This service automatically moves
2+ # /usr/bin/{reboot,poweroff,halt,shutdown}
3+ # so that if started with 66, users can shutdown etc. with it.
4+ # It automatically moves everything back if started with
5+ # runit again.
6+ # This is run by runit and 66
7+
8+ if grep -q "init=/usr/bin/66" /proc/cmdline; then
9+ for i in reboot poweroff halt shutdown; do
10+ if ! test -e /usr/bin/${i}.runit; then
11+ mv /usr/bin/${i} /usr/bin/${i}.runit
12+ ln -s /etc/66/${i} /usr/bin/${i}
13+ fi
14+ done
15+ else
16+ for i in reboot poweroff halt shutdown; do
17+ if test -e /usr/bin/${i}.runit; then
18+ rm /usr/bin/${i}
19+ mv /usr/bin/${i}.runit /usr/bin/${i}
20+ fi
21+ done
22+ fi
Original file line number Diff line number Diff line change 1+ [main]
2+ @type = classic
3+ @version = @VERSION@
4+ @description = "Launch @I"
5+ @user = ( root )
6+ @options = ( env )
7+
8+ [start]
9+ @execute = ( execl-cmdline -s { agetty ${cmd_args} @I } )
10+
11+ [environment]
12+ cmd_args=!-J 38400
Original file line number Diff line number Diff line change 1+ # Template file for 'boot-66serv'
2+ pkgname=boot-66serv
3+ version=2.2.1
4+ revision=1
5+ wrksrc=${pkgname}-v${version}
6+ build_style=gnu-configure
7+ configure_args="--HOSTNAME=voidlinux --TTY=!4
8+ --KEYMAP=!us --TZ=Europe/Madrid"
9+ make_install_target="install install-man install-html"
10+ hostmakedepends="lowdown"
11+ makedepends="file"
12+ depends="s6 s6-rc s6-linux-utils s6-portable-utils 66 66-tools"
13+ short_desc="Stage 1 boot for 66"
14+ maintainer="mobinmob <mobinmob@disroot.org>"
15+ # previous maintainer="teldra <teldra@rotce.de>"
16+ license="ISC"
17+ homepage="https://framagit.org/Obarun/boot-66serv"
18+ conf_files="/etc/66/rc.local"
19+ distfiles="https://framagit.org/Obarun/${pkgname}/-/archive/v${version}/${pkgname}-v${version}.tar.gz"
20+ checksum=34eac7f84dd9cafda78a7b5a21eed484e9d6b52e8fba0ade6dbb5f1567def84d
21+
22+ post_install() {
23+ vinstall ${FILESDIR}/switch-initutils 644 etc/runit/core-services 99-switch-initutils.sh
24+ vbin ${FILESDIR}/66
25+ vlicense LICENSE
26+ vinstall ${FILESDIR}/tty@ 644 usr/share/66/service/
27+ vsed -i "s/@VERSION@/${version}/" "${DESTDIR}/usr/share/66/service/tty@"
28+ vinstall ${FILESDIR}/runit 644 usr/share/66/service/
29+ vsed -i "s/@VERSION@/${version}/" "${DESTDIR}/usr/share/66/service/runit"
30+ }
You can’t perform that action at this time.
0 commit comments