aboutsummarylogtreecommitdiffstats
path: root/hook
blob: 195de06f77c6ad6a714e1eef5dc95123bf5dc0c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/ash

run_hook() {
    echo "[neoshy] Starting hook"

    src_dev="$(getarg src_dev)"
    src_img="$(getarg src_img)"

    mkdir -p /mnt
    mount "$src_dev" /mnt
    losetup --show --find "/mnt$src_img"
	umount /mnt
	rm -rf /mnt
	echo "[neoshy] Finishing hook"
}