summarylogtreecommitdiffstats
path: root/modustoolbox-progtools.install
blob: 1ebb2abdacf0b5e373935c26e5355e25ee84bd48 (plain)
1
2
3
4
5
6
7
8
9
post_install() {
    echo "Running post-install script..."

    # Define product location as the parent to resources folder
    PRODUCT_HOME="/opt/ModusToolboxProgtools-1.3.1"

    # Find and install udev rules scripts 
    find "${PRODUCT_HOME}" -type f -name "install_rules.sh" -executable -exec sed -i '/\bsudo service udev restart\b/s/^/# /' {} \; -exec {} \;
}