source: casper-and-ubiquity-hooks/trunk/fuentes/casper-customize-openssh/usr/share/initramfs-tools/scripts/casper-bottom/90customopenssh @ 791

Last change on this file since 791 was 791, checked in by kbut, 3 years ago

add hooks

  • Property svn:executable set to *
File size: 435 bytes
Line 
1#!/bin/sh
2
3PREREQ=""
4DESCRIPTION="Configuring openssh-server..."
5
6prereqs()
7{
8    echo "$PREREQ"
9}
10
11case $1 in
12# get pre-requisites
13prereqs)
14       prereqs
15       exit 0
16       ;;
17esac
18
19. /scripts/casper-functions
20
21log_begin_msg "$DESCRIPTION"
22# Only in casper mode
23rc=0
24cat /proc/cmdline | grep -q "casper" ||rc=1
25if [ ${rc} -eq 0 ]; then
26        casper-reconfigure /root openssh-server
27else
28        echo " Disabled (not in casper)"
29fi
30log_end_msg
Note: See TracBrowser for help on using the repository browser.