diff options
Diffstat (limited to 'buildlib.sh')
-rw-r--r-- | buildlib.sh | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/buildlib.sh b/buildlib.sh index 503c7572..42352f7c 100644 --- a/buildlib.sh +++ b/buildlib.sh @@ -143,22 +143,6 @@ function copy_to_image() rmdir tmpmnt &>/dev/null } -function deactivate_unattended_upgrades() -{ - local IMG=$1 - local SECTOR - local OFFSET - SECTOR=$( fdisk -l "$IMG" | grep Linux | awk '{ print $2 }' ) - OFFSET=$(( SECTOR * 512 )) - - [ -f "$IMG" ] || { echo "no image"; return 1; } - mkdir -p tmpmnt - sudo mount "$IMG" -o offset="$OFFSET" tmpmnt || return 1 - sudo rm -f tmpmnt/etc/apt/apt.conf.d/20nextcloudpi-upgrades - sudo umount -l tmpmnt - rmdir tmpmnt &>/dev/null -} - function download_resize_raspbian_img() { local SIZE=$1 |