File: icecast-server.postinst

package info (click to toggle)
icecast 1.0.0-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 392 kB
  • ctags: 243
  • sloc: ansic: 2,408; sh: 194; makefile: 139; perl: 137; java: 91; sql: 17
file content (19 lines) | stat: -rw-r--r-- 404 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh -e

# Install the links into /etc/init.d
update-rc.d icecast defaults >/dev/null

. /etc/default/icecast

if [ "$START_ICECAST" != "yes" ]; then
    echo
    echo "Icecast is not started by default."
    echo
    echo "Please change /etc/default/icecast to have the server start."
    echo
    echo "Press <RETURN> to continue"
    echo
    read junkstuff
else
    /etc/init.d/icecast start
fi