Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions source/scripts/init/system/utopia_init.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh

Check failure on line 1 in source/scripts/init/system/utopia_init.sh

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'BSD-3-Clause' license found in local file 'source/scripts/init/system/utopia_init.sh' (Match: rdkb/components/opensource/ccsp/Utopia/rdkb/components/opensource/ccsp/Utopia/1908, 751 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdkb/components/opensource/ccsp/Utopia/+archive/rdk-dev-1908.tar.gz, file: source/scripts/init/system/utopia_init.sh)

Check failure on line 1 in source/scripts/init/system/utopia_init.sh

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'BSD-Intel' license found in local file 'source/scripts/init/system/utopia_init.sh' (Match: rdkb/components/opensource/ccsp/Utopia/rdkb/components/opensource/ccsp/Utopia/20200713-rdk-dev, 827 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdkb/components/opensource/ccsp/Utopia/+archive/nightly/20200713-rdk-dev.tar.gz, file: source/scripts/init/system/utopia_init.sh)

Check failure on line 1 in source/scripts/init/system/utopia_init.sh

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'BSD-Intel' license found in local file 'source/scripts/init/system/utopia_init.sh' (Match: rdkb/components/opensource/ccsp/Utopia/rdkb/components/opensource/ccsp/Utopia/2101, 833 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdkb/components/opensource/ccsp/Utopia/+archive/rdk-dev-2101.tar.gz, file: source/scripts/init/system/utopia_init.sh)
##########################################################################
# If not stated otherwise in this file or this component's Licenses.txt
# file the following copyright and licenses apply:
Expand Down Expand Up @@ -262,6 +262,21 @@
syscfg commit
fi

#Change devicetype on firmware upgrade
DEVICETYPE_MIGRATE="$(syscfg get devicetype_migrate)"
if [ -z "$DEVICETYPE_MIGRATE" ]; then
CURRENT_DEVICETYPE="$(syscfg get DeviceType)"
echo_t "[utopia][init] Devicetype is $CURRENT_DEVICETYPE"
if [ "$CURRENT_DEVICETYPE" != "PROD" ]; then
echo_t "[utopia][init] setting DeviceType to PROD"
syscfg set DeviceType "PROD"
else
echo_t "[utopia][init] DeviceType is already PROD, no change needed"
fi
syscfg set devicetype_migrate "1"
syscfg commit
fi

if [ -f $SYSCFG_OLDBKUP_FILE ];then
rm -rf $SYSCFG_OLDBKUP_FILE
fi
Expand Down
15 changes: 15 additions & 0 deletions source/scripts/init/system/utopia_init_hub4.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh

Check failure on line 1 in source/scripts/init/system/utopia_init_hub4.sh

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'BSD-Intel' license found in local file 'source/scripts/init/system/utopia_init_hub4.sh' (Match: rdkb/components/opensource/ccsp/Utopia/rdkb/components/opensource/ccsp/Utopia/1, 703 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdkb/components/opensource/ccsp/Utopia/+archive/RDKB-RELEASE-TEST-DUNFELL-1.tar.gz, file: source/scripts/init/system/utopia_init_hub4.sh)

Check failure on line 1 in source/scripts/init/system/utopia_init_hub4.sh

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'BSD-Intel' license found in local file 'source/scripts/init/system/utopia_init_hub4.sh' (Match: rdkb/components/opensource/ccsp/Utopia/rdkb/components/opensource/ccsp/Utopia/20200713-rdk-dev, 703 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdkb/components/opensource/ccsp/Utopia/+archive/nightly/20200713-rdk-dev.tar.gz, file: source/scripts/init/system/utopia_init_hub4.sh)

Check failure on line 1 in source/scripts/init/system/utopia_init_hub4.sh

View workflow job for this annotation

GitHub Actions / call-fossid-workflow / Fossid Annotate PR

FossID License Issue Detected

Source code with 'BSD-Intel' license found in local file 'source/scripts/init/system/utopia_init_hub4.sh' (Match: rdkb/components/opensource/ccsp/Utopia/rdkb/components/opensource/ccsp/Utopia/2, 703 lines, url: https://code.rdkcentral.com/r/plugins/gitiles/rdkb/components/opensource/ccsp/Utopia/+archive/RDKB-RELEASE-TEST-DUNFELL-2.tar.gz, file: source/scripts/init/system/utopia_init_hub4.sh)
##########################################################################
# If not stated otherwise in this file or this component's Licenses.txt
# file the following copyright and licenses apply:
Expand Down Expand Up @@ -204,6 +204,21 @@
syscfg commit
fi

#Change devicetype on firmware upgrade
DEVICETYPE_MIGRATE="$(syscfg get devicetype_migrate)"
if [ -z "$DEVICETYPE_MIGRATE" ]; then
CURRENT_DEVICETYPE="$(syscfg get DeviceType)"
echo_t "[utopia][init] Devicetype is $CURRENT_DEVICETYPE"
if [ "$CURRENT_DEVICETYPE" != "PROD" ]; then
echo_t "[utopia][init] setting DeviceType to PROD"
syscfg set DeviceType "PROD"
else
echo_t "[utopia][init] DeviceType is already PROD, no change needed"
fi
syscfg set devicetype_migrate "1"
syscfg commit
fi

#Hard Factory reset from mount-fs.sh
if [ `cat /data/HFRES_UTOPIA` -eq 1 ]; then
syscfg set $FACTORY_RESET_KEY $FACTORY_RESET_RGWIFI
Expand Down
15 changes: 15 additions & 0 deletions source/scripts/init/system/utopia_init_xb6.sh
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,21 @@ else
echo "SSH: Forward SSH changed to disabled" >> $Log_file
fi

#Change devicetype on firmware upgrade
DEVICETYPE_MIGRATE="$(syscfg get devicetype_migrate)"
if [ -z "$DEVICETYPE_MIGRATE" ]; then
CURRENT_DEVICETYPE="$(syscfg get DeviceType)"
echo_t "[utopia][init] Devicetype is $CURRENT_DEVICETYPE"
if [ "$CURRENT_DEVICETYPE" != "PROD" ]; then
echo_t "[utopia][init] setting DeviceType to PROD"
syscfg set DeviceType "PROD"
else
echo_t "[utopia][init] DeviceType is already PROD, no change needed"
fi
syscfg set devicetype_migrate "1"
syscfg commit
fi

#IGMP PROXY Disbaling on migration
IGMP_MIGRATE="`syscfg get igmp_migrate`"
if [ -z "$IGMP_MIGRATE" ]; then
Expand Down
Loading