[pisa-src] Re: r1746 - in trunk/openwrt: package/pisa/Makefile package/pisa/files/pisaautoconf.init router-configurations/auto-asus router-configurations/auto-asus/etc router-configurations/auto-asus/etc/banner r...

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Mon, 23 Nov 2009 17:48:52 +0100

On Mon, Nov 23, 2009 at 05:26:08PM +0100, Jahn Bertsch wrote:
> 
> --- /dev/null 00:00:00 1970   (empty, because file is newly added)
> +++ trunk/openwrt/package/pisa/files/pisaautoconf.init        Mon Nov 23 
> 17:26:08 2009        (r1746)
> @@ -0,0 +1,67 @@
> +#!/bin/sh /etc/rc.common
> +#
> +# Relies on the '-i' GNU extension for sed.
> +
> +replace () {
> +    sed -i "s/$2/$3/g" $1
> +}

Are you sure you can rely on the -i option being available?  OpenWrt
uses busybox by default and I think busybox provides sed, so GNU sed
might not be available.

> +echo "Getting configuration from $CONFIG_URL"
> +wget $CONFIG_URL

Is wget always available?

Diego

Other related posts: