diff --git a/rc-local/.SRCINFO b/rc-local/.SRCINFO new file mode 100644 index 0000000..41dea38 --- /dev/null +++ b/rc-local/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = rc-local + pkgdesc = Support for legacy rc.local scripts + pkgver = 4 + pkgrel = 1 + url = https://aur.archlinux.org/packages/rc-local/ + install = rc-local.install + arch = any + license = LGPL2.1 + depends = systemd + backup = etc/rc.local + source = rc.local + source = rc-local.service + sha256sums = 8aa661c15cf9a35c32c79055bf69ab2d16354128ddd67a1bce0a7e48fe26f2e3 + sha256sums = f8c4f7a72833bb568bd4848ad16442cb3150b438184e0a6d30348fb518f969ae + +pkgname = rc-local diff --git a/rc-local/PKGBUILD b/rc-local/PKGBUILD new file mode 100644 index 0000000..a35cf70 --- /dev/null +++ b/rc-local/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: Manuel Hüsers +# Contributor: megadriver +# Contributor: $pooky Hunter + +pkgname=rc-local +pkgver=4 +pkgrel=1 +pkgdesc='Support for legacy rc.local scripts' +url="https://aur.archlinux.org/packages/${pkgname}/" +arch=('any') +license=('LGPL2.1') +install="${pkgname}.install" +depends=('systemd') +backup=('etc/rc.local') +source=('rc.local' + 'rc-local.service') +sha256sums=('8aa661c15cf9a35c32c79055bf69ab2d16354128ddd67a1bce0a7e48fe26f2e3' + 'f8c4f7a72833bb568bd4848ad16442cb3150b438184e0a6d30348fb518f969ae') + +package() { + install -Dm755 'rc.local' "${pkgdir}/etc/rc.local" + install -Dm644 'rc-local.service' "${pkgdir}/usr/lib/systemd/system/rc-local.service" +} diff --git a/rc-local/rc-local.install b/rc-local/rc-local.install new file mode 100644 index 0000000..19b1b46 --- /dev/null +++ b/rc-local/rc-local.install @@ -0,0 +1,8 @@ +post_install() { + cat < Please activate the rc-local service to execute /etc/rc.local on boot. +==> Run as root: systemctl enable rc-local.service + +EOF +} diff --git a/rc-local/rc-local.service b/rc-local/rc-local.service new file mode 100644 index 0000000..bc099a7 --- /dev/null +++ b/rc-local/rc-local.service @@ -0,0 +1,20 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +[Unit] +Description=/etc/rc.local Compatibility +ConditionFileIsExecutable=/etc/rc.local + +[Service] +Type=forking +ExecStart=/etc/rc.local start +TimeoutSec=0 +StandardOutput=tty +RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target diff --git a/rc-local/rc.local b/rc-local/rc.local new file mode 100644 index 0000000..65634df --- /dev/null +++ b/rc-local/rc.local @@ -0,0 +1,14 @@ +#!/bin/sh -e +# +# rc.local +# +# This script is executed at the end of each multiuser runlevel. +# Make sure that the script will "exit 0" on success or any other +# value on error. +# +# In order to enable or disable this script just change the execution +# bits. +# +# By default this script does nothing. + +exit 0