You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
475 B
20 lines
475 B
#!/bin/bash |
|
#remaster lib |
|
[ -d "<LIBDIR>" ] || { echo "LIBDIR not exist"; exit 1; } |
|
|
|
#check_dependency |
|
# -> 0 | -> 16 |
|
function check_dependency() { |
|
for packet in squashfs-tools xorriso lxc wget sed sendemail; do |
|
[ "`dpkg -l $packet 2>&1`" == "dpkg-query: Kein Paket gefunden, das auf $packet passt" ] && { |
|
echo "### ERROR ### Packet $packet not installed" |
|
return 16 |
|
} |
|
done |
|
return 0 |
|
} |
|
|
|
#this func is standalone executable |
|
[ -n "$1" ] && { |
|
check_dependency $@ |
|
}
|
|
|