From 36ece3020b4da7d5d67ff17fea9e42f877af9218 Mon Sep 17 00:00:00 2001 From: fbt Date: Sun, 6 Jul 2014 11:13:39 +0400 Subject: [PATCH] =?UTF-8?q?So,=20as=20an=20example=20of=20the=20way=20conf?= =?UTF-8?q?.d=20is=20supposed=20to=20be=20used,=20I've=20provided=20a=20co?= =?UTF-8?q?nf.d=20entry=20for=20dropbear=20that=20overrides=20the=20provid?= =?UTF-8?q?ed=20initsctipt.=20Just=20a=20simple=20change=20in=20=E2=80=9Cw?= =?UTF-8?q?here=20do=20we=20want=20to=20listen=E2=80=9D,=20but=20impossibl?= =?UTF-8?q?e=20to=20do=20otherwise=20without=20changing=20the=20initscript?= =?UTF-8?q?=20directly=20as=20dropbear=20does=20not=20support=20any=20exte?= =?UTF-8?q?rnal=20config=20files.=20So=20there=20you=20have=20it,=20the=20?= =?UTF-8?q?feature=20now=20has=20a=20purpose.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf.d/dhcpcd.sh | 1 - conf.d/dropbear.sh | 3 +-- init.d/dhcpcd | 2 +- init.d/dropbear | 1 + 4 files changed, 3 insertions(+), 4 deletions(-) delete mode 100644 conf.d/dhcpcd.sh diff --git a/conf.d/dhcpcd.sh b/conf.d/dhcpcd.sh deleted file mode 100644 index 624bacb..0000000 --- a/conf.d/dhcpcd.sh +++ /dev/null @@ -1 +0,0 @@ -service_args='-C resolv.conf' diff --git a/conf.d/dropbear.sh b/conf.d/dropbear.sh index a423038..10dbd6b 100644 --- a/conf.d/dropbear.sh +++ b/conf.d/dropbear.sh @@ -2,5 +2,4 @@ cfg_listen_port='2234' -service_pidfile="/run/dropbear.pid" -service_args="-R -w -P ${service_pidfile} -p ${cfg_listen_port}" +service_args="-R -w -F -p ${cfg_listen_port}" diff --git a/init.d/dhcpcd b/init.d/dhcpcd index 0be06f1..10ae1a3 100755 --- a/init.d/dhcpcd +++ b/init.d/dhcpcd @@ -3,4 +3,4 @@ service_respawn=true service_command='/usr/sbin/dhcpcd' -service_args='-B -C resolv.conf' +service_args='-B' diff --git a/init.d/dropbear b/init.d/dropbear index 2434be2..5e1ab99 100755 --- a/init.d/dropbear +++ b/init.d/dropbear @@ -2,3 +2,4 @@ service_respawn=true service_command='/bin/dropbear' +service_args="-R -w -F"