dot

packages and services management
Log | Files | Refs | README

commit 7bb8492d9887884eef5c6128226f8c953d96f3f2
parent 77596fdcbd59def0da0ee66e84877a94b54b19fe
Author: Josuah Demangeon <mail@josuah.net>
Date:   Tue,  3 Jul 2018 00:23:08 +0200

convert rc to sh, sadly

Diffstat:
Ms6/djbdns-tinydns/data/add-alias | 4++--
Ms6/djbdns-tinydns/data/add-childns | 4++--
Ms6/djbdns-tinydns/data/add-host | 4++--
Ms6/djbdns-tinydns/data/add-mx | 4++--
Ms6/djbdns-tinydns/data/add-ns | 4++--
Ms6/ngircd/data/tls | 2+-
Ms6/tinc/data/tinc-up | 14+++++++-------
Ms6/venti/data/fmt | 6+++---
8 files changed, 21 insertions(+), 21 deletions(-)

diff --git a/s6/djbdns-tinydns/data/add-alias b/s6/djbdns-tinydns/data/add-alias @@ -1,2 +1,2 @@ -#!/9/bin/rc -e -exec tinydns-edit data data.new add alias $* +#!/bin/sh -e +exec tinydns-edit data data.new add alias "$@" diff --git a/s6/djbdns-tinydns/data/add-childns b/s6/djbdns-tinydns/data/add-childns @@ -1,2 +1,2 @@ -#!/9/bin/rc -e -exec tinydns-edit data data.new add childns $* +#!/bin/sh -e +exec tinydns-edit data data.new add childns "$@" diff --git a/s6/djbdns-tinydns/data/add-host b/s6/djbdns-tinydns/data/add-host @@ -1,2 +1,2 @@ -#!/9/bin/rc -e -exec tinydns-edit data data.new add host $* +#!/bin/sh -e +exec tinydns-edit data data.new add host "$@" diff --git a/s6/djbdns-tinydns/data/add-mx b/s6/djbdns-tinydns/data/add-mx @@ -1,2 +1,2 @@ -#!/9/bin/rc -e -exec tinydns-edit data data.new add mx $* +#!/bin/sh -e +exec tinydns-edit data data.new add mx "$@" diff --git a/s6/djbdns-tinydns/data/add-ns b/s6/djbdns-tinydns/data/add-ns @@ -1,2 +1,2 @@ -#!/9/bin/rc -e -exec tinydns-edit data data.new add ns $* +#!/bin/sh -e +exec tinydns-edit data data.new add ns "$@" diff --git a/s6/ngircd/data/tls b/s6/ngircd/data/tls @@ -1,4 +1,4 @@ -#!/9/bin/rc -ex +#!/bin/sh -e openssl req -x509 -newkey rsa:4096 -days 365 -keyout key -out pem chmod 400 key diff --git a/s6/tinc/data/tinc-up b/s6/tinc/data/tinc-up @@ -1,11 +1,11 @@ -#!/9/bin/rc -xe +#!/bin/sh -ex -switch (`{uname}) { -case *BSD +case $(uname) in +(*BSD) ifconfig "$INTERFACE" "$(tinc -c . get subnet)" netmask 255.255.255.0 - -case Linux + ;; +(Linux) ip link set "$INTERFACE" up ip addr add "$(tinc -c . get subnet | sed q)/24" dev "$INTERFACE" - -} + ;; +esac diff --git a/s6/venti/data/fmt b/s6/venti/data/fmt @@ -1,7 +1,7 @@ -#!/9/bin/rc -e +#!/bin/sh -e -dd 'if=/dev/zero' 'of=/home/venti/isect0' 'bs=1M' 'count=1k' -dd 'if=/dev/zero' 'of=/home/venti/arena0' 'bs=1M' 'count=1k' +dd if=/dev/zero of=/home/venti/isect0 bs=1M count=1' +dd if=/dev/zero of=/home/venti/arena0 bs=1M count=1k /9/port/bin/venti/fmtisect isect0 /home/venti/isect0 /9/port/bin/venti/fmtisect isect1 /home/venti/isect1