#!/bin/bash

set -x

dpkg -i  /usr/share/volatile/packages/*

#remove local packages and disable service if installation successful
if [ "$?" == 0 ]; then
  rm -rf /usr/share/volatile/packages
  systemctl disable update-oem-meta-849e.service
fi
