+grml-scripts (0.9.13) unstable; urgency=low
+
+ * The 'fix bashism in several scripts' release. Thanks
+ to ft for the patches!
+
+ - say: fix bashism [Closes: issue114]
+ - make_chroot_jail: fix bashism [Closes: issue113]
+ - grml-start: fix bashism [Closes: issue112]
+ - grml-slrn: fix bashism [Closes: issue111]
+ - grml-muttng: fix bashism [Closes: issue110]
+ - grml-mutt: fix bashism [Closes: issue109]
+ - grml-lang: fix bashism [Closes: issue108]
+ - grml-config: fix bashism [Closes: issue107]
+ - grml-config-user: fix bashism [Closes: issue106]
+ - grml-config-root: fix bashism [Closes: issue105]
+ - attach-screen: fix bashism [Closes: issue103]
+
+ -- Michael Prokop <mika@grml.org> Tue, 6 Feb 2007 20:38:40 +0100
+
grml-scripts (0.9.12) unstable; urgency=low
* Update make_chroot_jail script (see
################################################################################
# -U option basically means "terminal does not have UTF-8 support"
-if [ "$1" == "-U" ]; then
+if [ x$1 = "x-U" ]; then
unset LC_CTYPE
fi
DIALOG=$(which dialog)
PN=$(basename $0)
-function allover() {
+allover() {
MENU=$($DIALOG --stdout --clear --title "$PN" --menu \
"Configure userland tools." 0 0 0 \
"grml-mutt" "Configure the mutt MUA" \
echo "supported values: at, de, ch, us"
}
-if [[ $# -lt "1" ]] ; then
+if [ $# -lt "1" ] ; then
usage
exit -1
fi
-if [[ $DISPLAY == "" ]] ;then
- if [[ "$1" == "de" ]] ; then
+if [ -z "$DISPLAY" ] ;then
+ if [ "$1" = "de" ] ; then
echo "Loading keymap for Germany..."
sudo loadkeys i386/qwertz/de-latin1-nodeadkeys.kmap.gz
echo -e "\nDone."
- elif [[ "$1" == "at" ]] ; then
+ elif [ "$1" = "at" ] ; then
echo "Loading keymap for Austria..."
sudo loadkeys i386/qwertz/de-latin1-nodeadkeys.kmap.gz
echo -e "\nDone."
- elif [[ "$1" == "ch" ]] ; then
+ elif [ "$1" = "ch" ] ; then
echo "Loading keymap for Switzerland..."
sudo loadkeys i386/qwertz/sg-latin1.kmap.gz
echo -e "\nDone."
- elif [[ "$1" == "us" ]] ; then
+ elif [ "$1" = "us" ] ; then
echo 'Loading keymap us...'
# sudo loadkeys /etc/console/boottime.kmap.gz
sudo loadkeys i386/qwerty/us-latin1.kmap.gz
modifying keyboard layout. Adjust \$LANG and \$LC_ALL for setting locales." ; exit 1
fi
else
- if [[ $# == "0" ]] ; then
+ if [ $# = 0 ] ; then
echo "Usage: $0 <language>"
echo "supported values: at, de, ch, us"
else
- if [[ "$1" == "de" ]] ; then
+ if [ "$1" = "de" ] ; then
echo "Loading keymap for Germany..."
[ -r $HOME/.Xmodmap.german ] && xmodmap $HOME/.Xmodmap.german || setxkbmap de
echo -e "\nDone."
- elif [[ "$1" == "at" ]] ; then
+ elif [ "$1" = "at" ] ; then
echo "Loading keymap for Austria..."
setxkbmap de
echo -e "\nDone."
- elif [[ "$1" == "ch" ]] ; then
+ elif [ "$1" = "ch" ] ; then
echo "Loading keymap for Switzerland..."
setxkbmap ch
echo -e "\nDone."
- elif [[ "$1" == "us" ]] ; then
+ elif [ "$1" = "us" ] ; then
echo 'Loading keymap us...'
[ -r $HOME/.Xmodmap ] && xmodmap $HOME/.Xmodmap || setxkbmap us
echo -e "\nDone."
esac
writecolors() {
- if [ "$COLOR" == 'light' ] ; then
+ if [ "$COLOR" = 'light' ] ; then
lightcolors
fi
}
esac
writecolors() {
- if [ "$COLOR" == 'light' ] ; then
+ if [ "$COLOR" = 'light' ] ; then
lightcolors
fi
}
esac
writecolors() {
- if [ "$COLOR" == 'light' ] ; then
+ if [ "$COLOR" = 'light' ] ; then
lightcolors
fi
- if [ "$COLOR" == 'dark' ] ; then
+ if [ "$COLOR" = 'dark' ] ; then
darkcolors
fi
}
# Latest change: Fre Jul 07 22:42:40 CEST 2006 [mika]
################################################################################
- (( ${+BROWSER} )) || BROWSER="w3m"
-#(( ${+BROWSER} )) || BROWSER="links2 -driver fb"
+BROWSER=${BROWSER:-w3m}
+#BROWSER=${BROWSER:-links2 -driver fb}
exec $BROWSER /usr/share/doc/grml-docs/startpage.html
## END OF FILE #################################################################
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# Bug-Reports: see http://grml.org/bugs/
# License: This file is licensed under the GPL v2.
-# Latest change: Son Jän 30 14:38:30 CET 2005 [mika]
+# Latest change: Die Feb 06 20:38:24 CET 2007 [mika]
################################################################################
-if [[ "$#" -eq '0' ]] ; then
+if [ $# -eq 0 ] ; then
echo "Usage: $0 <text_to_say>"
exit -1
fi
DEFAULTITEM=root
fi
-function allover() {
+allover() {
MENU=$($DIALOG --stdout --clear --title "$PN" --default-item $DEFAULTITEM --menu \
"Please select the scripts you would like to run.
exit 100
fi
-function allover() {
+allover() {
MENU=$($DIALOG --stdout --clear --title "$PN" --menu \
"Configure your grml system.
usermod -d "$HOMEDIR" -m -s "$SHELL" $CHROOT_USERNAME && chmod 700 "$HOMEDIR"
fi
-if [ "$CREATEUSER" == "yes" ] ; then {
+if [ "$CREATEUSER" = "yes" ] ; then {
echo "Adding User \"$CHROOT_USERNAME\" to system"
useradd -m -d "$HOMEDIR" -s "$SHELL" $CHROOT_USERNAME && chmod 700 "$HOMEDIR"