From 7df46a033cb847877010edf267effc4cd05c8e2d Mon Sep 17 00:00:00 2001 From: cyrus Date: Thu, 17 Jan 2013 16:16:02 +0000 Subject: base-files: rename ULA generation script git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35204 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/base-files/files/etc/uci-defaults/generate-ula | 18 ------------------ .../files/etc/uci-defaults/network-generate-ula | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 18 deletions(-) delete mode 100644 package/base-files/files/etc/uci-defaults/generate-ula create mode 100644 package/base-files/files/etc/uci-defaults/network-generate-ula (limited to 'package/base-files/files/etc') diff --git a/package/base-files/files/etc/uci-defaults/generate-ula b/package/base-files/files/etc/uci-defaults/generate-ula deleted file mode 100644 index f3e493145f..0000000000 --- a/package/base-files/files/etc/uci-defaults/generate-ula +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -[ "$(uci get network.globals.ula_prefix)" != "auto" ] && exit 0 -# Sometimes results are empty, therefore try until it works... -local r1 r2 r3 -while [ -z "$r1" -o -z "$r2" -o -z "$r3" ]; do - r1=$(printf "%02x" $(($(/dev/null - set network.globals.ula_prefix=fd$r1:$r2:$r3::/48 - commit network -EOF - -exit 0 - diff --git a/package/base-files/files/etc/uci-defaults/network-generate-ula b/package/base-files/files/etc/uci-defaults/network-generate-ula new file mode 100644 index 0000000000..f3e493145f --- /dev/null +++ b/package/base-files/files/etc/uci-defaults/network-generate-ula @@ -0,0 +1,18 @@ +#!/bin/sh + +[ "$(uci get network.globals.ula_prefix)" != "auto" ] && exit 0 +# Sometimes results are empty, therefore try until it works... +local r1 r2 r3 +while [ -z "$r1" -o -z "$r2" -o -z "$r3" ]; do + r1=$(printf "%02x" $(($(/dev/null + set network.globals.ula_prefix=fd$r1:$r2:$r3::/48 + commit network +EOF + +exit 0 + -- cgit v1.2.3