# Apply-device-config script

**URL:** https://hub.mender.io/t/apply-device-config-script/3418
**Category:** General Discussions
**Created:** [March 23, 2021, 12:19pm UTC](https://hub.mender.io/t/apply-device-config-script/3418 "2021-03-23T12:19:23Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Mikel](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@Mikel](https://hub.mender.io/u/Mikel)
#### Post date: [March 23, 2021, 12:19pm UTC](https://hub.mender.io/t/apply-device-config-script/3418/1 "2021-03-23T12:19:23Z")

</div>

Hi, I’m trying apply-device-config script on mender’s development version and in the documentation ([How to make an apply-device-config script | Mender documentation](https://docs.mender.io/development/add-ons/configure/device-integration)) it says “See this article on Mender Hub” on installation section but it refs mender’s hub.

Any idea of how can I install it?

Thanks!

---

<div class="post-metadata">

### Author: ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)
#### Post date: [March 23, 2021, 6:06pm UTC](https://hub.mender.io/t/apply-device-config-script/3418/2 "2021-03-23T18:06:29Z")

</div>

Wow, that’s early adoption, that documentation is being written as we speak! 😄

More info will be available soon, but if you want to try, you need to use the `master` branch of meta-mender or mender-convert, depending on which one you use.

- For meta-mender:
  - Add `IMAGE_INSTALL_append = " mender-configure"`. This installs the Update Module that Mender needs.
  - You can also add `mender-configure-scripts` if you want to try the timezone script instead of making your own.

- For mender-convert:
  - Make a config file, set `MENDER_ADDON_CONFIGURE_INSTALL=y` and include it with `-c` when building the image.

This is very bleeding edge, so don’t expect this process to be perfectly smooth yet. It will be part of Mender 2.7 however, which is right around the corner.

---

<div class="post-metadata">

### Author: ![Mikel](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@Mikel](https://hub.mender.io/u/Mikel)
#### Post date: [March 25, 2021, 8:31am UTC](https://hub.mender.io/t/apply-device-config-script/3418/3 "2021-03-25T08:31:43Z")

</div>

I have finally install the module following this steps:

1. wget [https://github.com/mendersoftware/mender-configure-module.git](https://github.com/mendersoftware/mender-configure-module.git)
2. cd mender-configure-module && sudo make install
3. Create /usr/lib/mender-configure/apply-device-config.d directory if it’s not created.
4. Add your scripts on the previous directory.

I tried to use the timezone script and it worked successfully!

user@device:/var/lib/mender-configure$ sudo cat device-config.json  
{  
“timezone”: “Japan”  
}user@device:/var/lib/mender-configure$ date  
jue mar 25 17:01:48 JST 2021

---

<div class="post-metadata">

### Author: ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)
#### Post date: [March 25, 2021, 9:55am UTC](https://hub.mender.io/t/apply-device-config-script/3418/4 "2021-03-25T09:55:49Z")

</div>

That’s great! I’m happy you succeeded with it!
