# State script based on image

**URL:** <https://hub.mender.io/t/state-script-based-on-image/7409>\
**Category:** General Discussions\
**Tags:** yocto, mender-client\
**Created:** [December 19, 2024, 2:21pm UTC](https://hub.mender.io/t/state-script-based-on-image/7409 "2024-12-19T14:21:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![filcopetti](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/filcopetti/32/2375_2.png) [@filcopetti](https://hub.mender.io/u/filcopetti)\
**Post date:** [December 19, 2024, 2:21pm UTC](https://hub.mender.io/t/state-script-based-on-image/7409/1 "2024-12-19T14:21:48Z")

</div>

Hi Everybody,  
In a production environment I have same devices with different images that are on customer site.  
On these devices we are going to deploy a major update, so we designed a state script that is going to convert the configuration file of our utility to be compatible with the new utility version.

Some of the configuration that the new utility needs are missing, and these are different from customer to customer.

Is there a way to include a different state script based on the image selected?  
image-customer-1 → state-script-customer1  
image-customer-2 → state-script-customer2  
…

Thanks!  
Filippo
