upload tizen1.0 source
[pkgs/e/elektra.git] / scripts / convert-network
1 #!/bin/sh
2
3 ########################################################################
4 ##
5 ## This script will read network configurations under /etc/ and 
6 ## create an equivalent registry tree under $ROOT.
7 ##
8 ## The correct way to run it is:
9 ##
10 ## # ./net-convert | sh -e
11 ##
12 ##
13 ## To make tests you can do:
14 ##
15 ## $ ROOT=user/test ./net-convert | sh -e
16 ##
17 ## Avi Alkalay <avi@unix.sh>
18 ## March 2004
19 ##
20 ########################################################################
21
22
23 [ -z "$RG" ] && RG="kdb"
24 [ -z "$ROOT" ] && ROOT="system"
25
26 PROFILES_HOME="/etc/sysconfig/networking/profiles"
27
28 # Get list of profiles
29 cd $PROFILES_HOME
30 ls | while read profile; do
31         
32
33 done