Code Sample |
#!/bin/sh # # Script to run Digital Picture Frame using Feh # drware@thewares.net # # Set display so that the script will effect # the screen on the frame export DISPLAY=:0 # Stop the currently running Slide show /mnt/hda3/frame/kill.sh feh clear echo "" echo -n "Enter the number of seconds for photo rotation " echo -n "and press [ENTER]: " read var_seconds echo "" echo "Available options for the directory are:" ls /mnt/hda3/Pictures echo "" echo -n "Enter the directory of photos to display and " echo -n "press [ENTER]: " read var_dir echo "" /usr/bin/feh -qzrZF -D $var_seconds /mnt/hda3/Pictures/$var_dir & exit 0 |
Code Sample |
CMDLINE=`cat /proc/cmdline` |
Code Sample |
source /etc/init.d/dsl-functions |
Code Sample |
source /etc/init.d/dsl-functions CMDLINE=`cat /proc/cmdline` PICTURES=`getbootparam pictures` |
Code Sample |
#!/bin/sh #Sample script to query boot command line and store a #parameter into a value to use later #Here we just echo the path and list it's contents # # . /etc/init.d/dsl-functions CMDLINE="$(cat /proc/cmdline)" PICTURES="$(getbootparam pictures 2>/dev/null)" [ -n "$PICTURES" ] || PICTURES="/home/dsl" echo "$PICTURES" ls "$PICTURES" |
Code Sample |
#!/bin/sh #Sample script to query boot command line and store a #parameter into a value to use later #Here we just echo the path and list it's contents # # . /etc/init.d/dsl-functions CMDLINE="$(cat /proc/cmdline)" PICTURES="$(getbootparam pictures" [ -d "$PICTURES" ] || PICTURES="/home/dsl" echo "$PICTURES" ls "$PICTURES" |