Skip to content

Commit

Permalink
M #-: Remove obsolete func
Browse files Browse the repository at this point in the history
  • Loading branch information
xorel committed Oct 25, 2023
1 parent d9bdc4d commit f6eefeb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions minione
Original file line number Diff line number Diff line change
Expand Up @@ -1281,12 +1281,6 @@ aug_set() {
augtool -s set "/files$CONF/$KEY" "'$VALUE'" >/dev/null
}

switch_to_qemu() {
LINE_NUM=$(grep -n '^VM_MAD =' -A 10 /etc/one/oned.conf |
grep -E '^[0-9]+-\s*TYPE' | grep kvm | awk -F- '{print $1}')
sed -i "${LINE_NUM}s/kvm/qemu/" /etc/one/oned.conf
}

set_init_password() {
[[ ! -d $HOME/.one ]] && { mkdir "$HOME"/.one || return 1; }
echo "oneadmin:$PASSWORD" >"$HOME"/.one/one_auth || return 1
Expand Down

0 comments on commit f6eefeb

Please sign in to comment.