From bd325689a38ce40e1e7fe6357c87c9cb07fdb9f6 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 25 Sep 2009 14:25:32 +0000 Subject: main/openrc: migrate rc.local from 1.8 fixes #172 --- main/openrc/APKBUILD | 7 +++++-- main/openrc/local.start | 4 ++++ main/openrc/openrc.post-install | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 main/openrc/local.start diff --git a/main/openrc/APKBUILD b/main/openrc/APKBUILD index de643762..a6fab9a3 100644 --- a/main/openrc/APKBUILD +++ b/main/openrc/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa pkgname=openrc pkgver=0.5.0 -pkgrel=10 +pkgrel=11 pkgdesc="OpenRC manages the services, startup and shutdown of a host" url="http://roy.marples.name/openrc" license='BSD-2' @@ -19,6 +19,7 @@ source="http://roy.marples.name/downloads/$pkgname/$pkgname-$pkgver.tar.bz2 modules.initd modloop.initd networking.initd + local.start " build() { @@ -42,6 +43,7 @@ build() { install -Dm755 $i "$pkgdir"/etc/init.d/${j%.initd} done + install -Dm644 ../local.start "$pkgdir"/etc/conf.d/local.start } md5sums="9ec7f8425e12abbbd0f7a962aae3fa3c openrc-0.5.0.tar.bz2 @@ -54,4 +56,5 @@ b1e64885f301166df30be3e3cf5338ff hwdrivers.initd 33ca3e558c42cdd17adccbc7807298f7 keymaps.initd 098a1f16812f56fcb56eb6b6f0fa31f6 modules.initd 4c69d1c6a84cbe0195496c14a757579b modloop.initd -747168eee535e845179eaef5a3fcb334 networking.initd" +747168eee535e845179eaef5a3fcb334 networking.initd +0a615d93aab691364c03539c3b496dcc local.start" diff --git a/main/openrc/local.start b/main/openrc/local.start new file mode 100644 index 00000000..e0ce8607 --- /dev/null +++ b/main/openrc/local.start @@ -0,0 +1,4 @@ + +if [ -f /etc/rc.local ]; then + . /etc/rc.local +fi diff --git a/main/openrc/openrc.post-install b/main/openrc/openrc.post-install index 1d0201d3..1057eed4 100644 --- a/main/openrc/openrc.post-install +++ b/main/openrc/openrc.post-install @@ -20,6 +20,7 @@ for i in etc/rc[SL].d/*; do procps) svc=sysctl;; bootmisc.sh) svc=bootmisc;; keymap) svc=keymaps;; + rc.local) svc=local;; *) svc=$oldsvc;; esac -- cgit v1.2.3