Rename old ut distro option to ut16.04

This commit is contained in:
Jami Kettunen
2023-02-24 13:11:44 +02:00
parent f3bcc382bc
commit 4a43d3eee4
4 changed files with 10 additions and 6 deletions

View File

@@ -20,7 +20,7 @@ Download TWRP:
`./download-twrp.py $device`
Install a halium rootfs and systemimage:
`halium-install -p <mode (reference, neon, ut, ut20.04, debian-pm, debian-pm-caf, none)> <rootfs.tar.gz> <system.img>`
`halium-install -p <mode (reference, neon, ut16.04, ut20.04, debian-pm, debian-pm-caf, none)> <rootfs.tar.gz> <system.img>`
Connect to the device:
`./connect.py -p $protocol -u $username`

View File

@@ -12,7 +12,7 @@ halium | reference)
pm | neon | debian-pm | debian-pm-caf)
IMAGE_SIZE=4G
;;
ut | ut20.04)
ut*)
IMAGE_SIZE=3G
;;
none)
@@ -140,9 +140,9 @@ function post_install() {
# set static path for now
chroot_run "dpkg-reconfigure openssh-server"
;;
ut | ut20.04)
ut*)
echo -n "enabling SSH ... "
if [ "$1" = ut ]; then
if [ "$1" = "ut16.04" ]; then
sudo sed -i 's/PasswordAuthentication=no/PasswordAuthentication=yes/g' "$ROOTFS_DIR/etc/init/ssh.override"
sudo sed -i 's/manual/start on startup/g' "$ROOTFS_DIR/etc/init/ssh.override"
sudo sed -i 's/manual/start on startup/g' "$ROOTFS_DIR/etc/init/usb-tethering.conf"

View File

@@ -38,7 +38,7 @@ function usage() {
Options:
-p POSTINSTALL run common post installation tasks for release.
supported: reference, neon, ut, ut20.04, debian-pm, debian-pm-caf, none
supported: reference, neon, ut16.04, ut20.04, debian-pm, debian-pm-caf, none
default: none
-v verbose output.

View File

@@ -41,7 +41,11 @@ while [ -n "$1" ] ; do
shift
export ROOTFS_RELEASE="$1"
case $ROOTFS_RELEASE in
"halium" | "debian-pm" | "reference" | "debian-pm-caf" | "pm" | "neon" | "ut" | "ut20.04" | "none")
"halium" | "debian-pm" | "reference" | "debian-pm-caf" | "pm" | "neon" | "ut16.04" | "ut20.04" | "none")
;;
"ut")
echo "Please specify the Ubuntu Touch version after 'ut', for example 'ut20.04'"
exit 1
;;
*)
echo "Unsupported post install release! Exiting now"