From fe8b0606b434bb17f870cf9e6ba473c2ef39ca1f Mon Sep 17 00:00:00 2001 From: Kamal Wickramanayake Date: Sat, 23 May 2026 14:45:05 +0530 Subject: Added a simple deb file creation sample project to linux/deb directory --- linux/deb/fs-hello-kamal/package/usr/bin/fs-hello-kamal | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 linux/deb/fs-hello-kamal/package/usr/bin/fs-hello-kamal (limited to 'linux/deb/fs-hello-kamal/package/usr/bin') diff --git a/linux/deb/fs-hello-kamal/package/usr/bin/fs-hello-kamal b/linux/deb/fs-hello-kamal/package/usr/bin/fs-hello-kamal new file mode 100755 index 0000000..b8c827c --- /dev/null +++ b/linux/deb/fs-hello-kamal/package/usr/bin/fs-hello-kamal @@ -0,0 +1,16 @@ +#!/bin/bash + +# Define a function that sends messages to stderr. +errcho() { + echo "$@" 1>&2; +} + +# Source the configuration file. +. /etc/fs-hello-kamal.conf + +if [ "$1" = "" ]; then + errcho "Error! Provide some arguments to the command." + exit 1 +fi + +/usr/games/cowsay "$PREFIX_NAME's friend cow says $@" -- cgit v1.2.3