mirror of
https://gitlab.com/JBBgameich/halium-install
synced 2025-11-03 20:45:42 +08:00
Rename old ut distro option to ut16.04
This commit is contained in:
@@ -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`
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user