4 test -f "$dtb" || ( echo "Usage: $0 overlay.dtb" ; exit 1 )
6 if echo $dtb | grep '\.dts$' ; then
7 echo "Compile overlay $dtb"
8 dtc -I dts -O dtb -o $dtb.dtb $dtb
14 #mount none /sys/kernel/config/ -t configfs
16 config=`mount -t configfs | awk '{ print $3 }'`
17 if [ -z "$config" ] ; then
18 config=/sys/kernel/config
19 mount -t configfs none $config
24 dir=$config/device-tree/overlays/$name
26 # remote overlay to reaload it
27 test -d $dir && rmdir $dir
33 echo "Remove with: rmdir $dir"