78 lines
2.7 KiB
Bash
Executable File
78 lines
2.7 KiB
Bash
Executable File
#!/usr/bin/env ksh
|
|
|
|
# change-to-ksh.sh
|
|
# This script changes the shell used by SEID to the KornShell.
|
|
|
|
# Copyright (c) 2025, Scott C. MacCallum (scm@sdf.org).
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU Affero General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# at your option) any later version.
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU Affero General Public License for more details.
|
|
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
sed '1s/bash/ksh/' $HOME/seid/bboard.sh > $HOME/seid/bboard.sh-01
|
|
mv $HOME/seid/bboard.sh-01 $HOME/seid/bboard.sh
|
|
chmod +x $HOME/seid/bboard.sh
|
|
|
|
sed '1s/bash/ksh/' $HOME/seid/com.sh > $HOME/seid/com.sh-01
|
|
mv $HOME/seid/com.sh-01 $HOME/seid/com.sh
|
|
chmod +x com.sh
|
|
|
|
sed '1s/bash/ksh/' $HOME/seid/email.sh > $HOME/seid/email.sh-01
|
|
mv $HOME/seid/email.sh-01 $HOME/seid/email.sh
|
|
chmod +x email.sh
|
|
|
|
sed '1s/bash/ksh/' $HOME/seid/irc-fsf.sh > $HOME/seid/irc-fsf.sh-01
|
|
mv $HOME/seid/irc-fsf.sh-01 $HOME/seid/irc-fsf.sh
|
|
chmod +x irc-fsf.sh
|
|
|
|
sed '1s/bash/ksh/' $HOME/seid/irc-sdf.sh > $HOME/seid/irc-sdf.sh-01
|
|
mv $HOME/seid/irc-sdf.sh-01 $HOME/seid/irc-sdf.sh
|
|
chmod +x irc-sdf.sh
|
|
|
|
sed '1s/bash/ksh/' $HOME/seid/moo.sh > $HOME/seid/moo.sh-01
|
|
mv $HOME/seid/moo.sh-01 $HOME/seid/moo.sh
|
|
chmod +x moo.sh
|
|
|
|
sed '1s/bash/ksh/' $HOME/seid/resume-seid.sh > $HOME/seid/resume-seid.sh-01
|
|
mv $HOME/seid/resume-seid.sh-01 $HOME/seid/resume-seid.sh
|
|
chmod +x resume-seid.sh
|
|
|
|
sed '1s/bash/ksh/' $HOME/seid/run-seid.sh > $HOME/seid/run-seid.sh-01
|
|
mv $HOME/seid/run-seid.sh-01 $HOME/seid/run-seid.sh
|
|
chmod +x run-seid.sh
|
|
|
|
sed '1s/bash/ksh/' $HOME/seid/term-local.sh > $HOME/seid/term-local.sh-01
|
|
mv $HOME/seid/term-local.sh-01 $HOME/seid/term-local.sh
|
|
chmod +x term-local.sh
|
|
|
|
sed '21s/bash/ksh/' $HOME/seid/term-local.sh > $HOME/seid/term-local.sh-01
|
|
mv $HOME/seid/term-local.sh-01 $HOME/seid/term-local.sh
|
|
chmod +x term-local.sh
|
|
|
|
sed '1s/bash/ksh/' $HOME/seid/term-sdf.sh > $HOME/seid/term-sdf.sh-01
|
|
mv $HOME/seid/term-sdf.sh-01 $HOME/seid/term-sdf.sh
|
|
chmod +x term-sdf.sh
|
|
|
|
sed '1s/bash/ksh/' $HOME/seid/vintage.sh > $HOME/seid/vintage.sh-01
|
|
mv $HOME/seid/vintage.sh-01 $HOME/seid/vintage.sh
|
|
chmod +x vintage.sh
|
|
|
|
sed '1s/bash/ksh/' $HOME/seid/vps.sh > $HOME/seid/vps.sh-01
|
|
mv $HOME/seid/vps.sh-01 $HOME/seid/vps.sh
|
|
chmod +x vps.sh
|
|
|
|
sed '1s/bash/ksh/' $HOME/seid/www.sh > $HOME/seid/www.sh-01
|
|
mv $HOME/seid/www.sh-01 $HOME/seid/www.sh
|
|
chmod +x www.sh
|
|
|
|
exit 0
|