#!/bin/sh # # Copyright (C) 2018 devolo AG # . /usr/lib/lh-migration.sh # Only do the migration once, no matter the outcome [ "$(fw_printenv LHMigration | cut -d= -f2)" != "1" ] || exit 0 fw_setenv LHMigration 1 if [ "$(lh_config_hostname)" = "delos" ]; then logger "Skipping LH migration" exit 0 fi # Check that this is a supported LH version for migration logger "Found config version $(lh_config_version)" logger "Starting LH migration" LIBDIR=/usr/lib/lh-migration $LIBDIR/system.sh $LIBDIR/network.sh case "$(lh_config_deviceType)" in "hamilton") logger "Migrating for hamilton" $LIBDIR/wireless.sh single ;; "zuse") logger "Migrating for zuse" $LIBDIR/wireless.sh dual ;; "auckland") logger "Migrating for auckland" $LIBDIR/wireless.sh single ;; esac $LIBDIR/wifi_schedule.sh $LIBDIR/wifi_parental.sh $LIBDIR/plc.sh logger "Finished LH migration" exit 0