Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Markus Gothe
iopsys
Commits
1daa8d7f
Commit
1daa8d7f
authored
Oct 11, 2021
by
Sukru Senli
Browse files
iop: genconfig: remove references to juci
parent
97a302a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
iop/scripts/genconfig.sh
View file @
1daa8d7f
...
...
@@ -5,7 +5,6 @@ function genconfig {
export
IMPORT
=
1
export
SRCTREEOVERR
=
0
export
FILEDIR
=
"files/"
export
THEMEDIR
=
"tmp/juci-themes"
CURRENT_CONFIG_FILE
=
".current_config_file"
export
CONFIGPATH
=
"package/feeds/iopsys/iop"
CUSTPATH
=
"customerconfigs"
...
...
@@ -238,7 +237,7 @@ function genconfig {
local
ALL
=
"
$1
"
local
CUSTOMER
=
"
$2
"
if
[
"
$CUSTOMER
"
-a
-d
"
$CUSTCONF
/
$CUSTOMER
"
]
;
then
local
boards
=
"
$(
ls
-1
"
$CUSTCONF
/
$CUSTOMER
"
|
grep
-v
common
|
grep
-v
juci-theme
)
"
local
boards
=
"
$(
ls
-1
"
$CUSTCONF
/
$CUSTOMER
"
|
grep
-v
common
)
"
if
[
"
$boards
"
]
;
then
echo
"
$CUSTOMER
has following boards:"
for
board
in
$boards
;
do
...
...
@@ -255,7 +254,7 @@ function genconfig {
if
[
"
$customers
"
-a
"
$ALL
"
==
1
]
;
then
for
customer
in
$customers
;
do
echo
$customer
local
boards
=
"
$(
ls
-1
$CUSTCONF
/
$customer
|
grep
-v
common
|
grep
-v
juci-theme
)
"
local
boards
=
"
$(
ls
-1
$CUSTCONF
/
$customer
|
grep
-v
common
)
"
if
[
"
$boards
"
]
;
then
for
board
in
$boards
;
do
echo
-e
"
\t
$board
"
...
...
@@ -309,13 +308,6 @@ function genconfig {
v
"rm -rf
$FILEDIR
*"
rm
-rf
$FILEDIR
*
fi
if
[
!
-d
"
$THEMEDIR
"
]
;
then
mkdir
-p
$THEMEDIR
elif
[
-d
"
$THEMEDIR
"
-a
$CLEAN
-eq
1
]
;
then
v
"rm -rf
$THEMEDIR
/*"
rm
-rf
$THEMEDIR
/
*
fi
}
create_and_copy_files
()
...
...
@@ -404,11 +396,6 @@ function genconfig {
v
"cp -ar
$CUSTCONF
/
$CUSTOMER
/
$BOARDTYPE
/fs/*
$FILEDIR
"
cp
-ar
$CUSTCONF
/
$CUSTOMER
/
$BOARDTYPE
/fs/
*
$FILEDIR
fi
if
[
-d
"
$CUSTCONF
/
$CUSTOMER
/juci-theme"
]
;
then
customer
=
"
$(
echo
$CUSTOMER
|
tr
'A-Z'
'a-z'
)
"
v
"cp -ar
$CUSTCONF
/
$CUSTOMER
/juci-theme
$THEMEDIR
/juci-theme-
$customer
"
cp
-ar
$CUSTCONF
/
$CUSTOMER
/juci-theme
$THEMEDIR
/juci-theme-
$customer
fi
if
[
-e
"
$CUSTCONF
/
$CUSTOMER
/common/common.diff"
]
;
then
v
"Apply
$CUSTCONF
/
$CUSTOMER
/common/common.diff"
cat
$CUSTCONF
/
$CUSTOMER
/common/common.diff
>>
.config
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment