# How to emulate mender update

**URL:** <https://hub.mender.io/t/how-to-emulate-mender-update/1838>\
**Category:** General Discussions\
**Created:** [April 24, 2020, 9:51am UTC](https://hub.mender.io/t/how-to-emulate-mender-update/1838 "2020-04-24T09:51:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aps](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@aps](https://hub.mender.io/u/aps)\
**Post date:** [April 24, 2020, 9:51am UTC](https://hub.mender.io/t/how-to-emulate-mender-update/1838/1 "2020-04-24T09:51:00Z")

</div>

I am debugging state-scripts and it is slow job. At the moment I have to do full update and it takes time. What should be written and where so the mender at boot time would think that system was upgraded.

br  
AP Sihvonen

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [April 24, 2020, 10:07am UTC](https://hub.mender.io/t/how-to-emulate-mender-update/1838/2 "2020-04-24T10:07:28Z")

</div>

Hm, I do not know if there way to trick the Mender client unless you deploy an Artifact.

One solution would to create a dummy artifact e.g based on [script Update Module](https://hub.mender.io/t/script/328/14). Note though if you want it to reboot when you deploy this you must modify the Update Module to include,

```auto
    NeedsArtifactReboot)
        echo "Yes"
        ;;

```
