path: clonezilla_5.15.4-1/sbin/ocs-srv-live dhcpd_pid="$(LC_ALL=C pidof dhcpd || LC_ALL=C pidof dhcpd3 || LC_ALL=C pidof dnsmasq)" tftpd_pid="$(LC_ALL=C pidof in.tftpd || LC_ALL=C pidof dnsmasq)" unfsd_pid="$(LC_ALL=C pidof unfsd)" nfsd_pid="$(LC_ALL=C pidof nfsd)" if [ -z "$dhcpd_pid" -o -z "$tftpd_pid" ] || [ -z "$unfsd_pid" -a -z "$nfsd_pid" ]; then path: clonezilla_5.15.4-1/sbin/ocs-srv-live # dhcpd is for isc-dhcp-server (from Squeeze), dhcpd3 is for dhcp3-server (< squeeze). dhcpd_pid="$(LC_ALL=C pidof dhcpd || LC_ALL=C pidof dhcpd3 || LC_ALL=C pidof dnsmasq)" tftpd_pid="$(LC_ALL=C pidof in.tftpd || LC_ALL=C pidof dnsmasq)" unfsd_pid="$(LC_ALL=C pidof unfsd)" nfsd_pid="$(LC_ALL=C pidof nfsd)" path: clonezilla_5.15.4-1/sbin/ocs-srv-live tftpd_pid="$(LC_ALL=C pidof in.tftpd || LC_ALL=C pidof dnsmasq)" unfsd_pid="$(LC_ALL=C pidof unfsd)" nfsd_pid="$(LC_ALL=C pidof nfsd)" if [ -z "$dhcpd_pid" -o -z "$tftpd_pid" ] || [ -z "$unfsd_pid" -a -z "$nfsd_pid" ]; then # Not configured yet or DRBL service is not started, either path: clonezilla_5.15.4-1/sbin/ocs-srv-live echo "Checking if DRBL related sevices are started or not..." # dhcpd is for isc-dhcp-server (from Squeeze), dhcpd3 is for dhcp3-server (< squeeze). dhcpd_pid="$(LC_ALL=C pidof dhcpd || LC_ALL=C pidof dhcpd3 || LC_ALL=C pidof dnsmasq)" tftpd_pid="$(LC_ALL=C pidof in.tftpd || LC_ALL=C pidof dnsmasq)" unfsd_pid="$(LC_ALL=C pidof unfsd)" path: clonezilla_5.15.4-1/setup/files/ocs/ocs-run *select_in_client*) # For Ubuntu < 13.10, the plymouthd might be running even we force to disable it in /etc/init/plymouth.conf. Therefore we force to stop it before running clonezilla dialog menu. Otherwise the keyboard will have problem. if [ -n "$(pidof plymouthd)" ]; then /bin/plymouth quit fi path: clonezilla_5.15.4-1/sbin/ocs-prep-repo modprobe nfs fi pid_rpcbind="$(LC_ALL=C pidof rpcbind)" if [ -z "$pid_rpcbind" ]; then echo "Service rpcbind is necesary for NFS client. Start it now..." path: clonezilla_5.15.4-1/sbin/ocs-prep-repo fi # We assume nfs-common only runs rpc.statd (for NFS3), no rpc.lockd. This is true for modern kernel (>=2.4). pid_rpc_statd="$(LC_ALL=C pidof rpc.statd)" if [ -z "$pid_rpc_statd" ]; then if [ -e /etc/init.d/nfs-common ]; then