Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
292f2695
Commit
292f2695
authored
Sep 05, 2006
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
User b66 added and owner changed of qbus and pbus devices
parent
edd9fb14
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
2 deletions
+55
-2
src/tools/pkg/deb/pwrrt/postinst
src/tools/pkg/deb/pwrrt/postinst
+55
-2
No files found.
src/tools/pkg/deb/pwrrt/postinst
View file @
292f2695
...
...
@@ -25,6 +25,10 @@ if ! grep -q "\bb55:" /etc/group; then
echo
"-- Add group b55"
groupadd b55
fi
if
!
grep
-q
"
\b
b66:"
/etc/group
;
then
echo
"-- Add group b66"
groupadd b66
fi
if
!
grep
-q
"
\b
skiftel:"
/etc/group
;
then
echo
"-- Add group skiftel"
groupadd skiftel
...
...
@@ -33,7 +37,7 @@ fi
if
!
grep
-q
"
\b
pwrp:"
/etc/passwd
;
then
echo
"-- Add user pwrp"
new_user
=
1
useradd
-s
/bin/bash
-p
aaupl/kQs1p3U
-g
pwrp
-G
b55,skiftel
-d
/home/pwrp pwrp
useradd
-s
/bin/bash
-p
aaupl/kQs1p3U
-g
pwrp
-G
b55,
b66,
skiftel
-d
/home/pwrp pwrp
if
[
!
-e
/home/pwrp
]
;
then
mkdir
/home/pwrp
fi
...
...
@@ -48,13 +52,18 @@ if ! grep -q "\bpwrp:" /etc/passwd; then
chown
-R
pwrp /home/pwrp
chgrp
-R
pwrp /home/pwrp
# Add to group dialout
if
grep
-q
"
\b
dialout:"
/etc/group
;
then
usermod
-a
-G
dialout pwrp
fi
fi
if
!
grep
-q
"
\b
skiftel:"
/etc/passwd
;
then
echo
"-- Add user skiftel"
new_user
=
1
useradd
-s
/bin/bash
-p
aa6NzxS/aBgP6
-g
skiftel
-G
pwrp
-d
/home/skiftel skiftel
if
[
!
-e
/home/
pwrp
]
;
then
if
[
!
-e
/home/
skiftel
]
;
then
mkdir
/home/skiftel
cp
/usr/pwrrt/cnf/user/.bashrc /home/skiftel
cp
/usr/pwrrt/cnf/user/.bash_profile /home/skiftel
...
...
@@ -98,6 +107,34 @@ if ! grep -q "\bb55:" /etc/passwd; then
fi
fi
if
!
grep
-q
"
\b
b66:"
/etc/passwd
;
then
echo
"-- Add user b66"
new_user
=
1
# Check if group audio exist
if
grep
-q
"
\b
audio:"
/etc/group
;
then
audio
=
"-G audio"
else
audio
=
""
fi
useradd
-s
/bin/bash
-p
aae.nHgHbfUpw
-g
b66
-G
pwrp
-d
/home/b66
$audio
b66
if
[
!
-e
/home/b66
]
;
then
mkdir
/home/b66
cp
/usr/pwrrt/cnf/op/.bashrc /home/b66
cp
/usr/pwrrt/cnf/op/.bash_profile /home/b66
cp
/usr/pwrrt/cnf/op/.mwmrc /home/b66
cp
/usr/pwrrt/cnf/op/.rtt_start /home/b66
chmod
a+x /home/b66/.rtt_start
cp
/usr/pwrrt/cnf/op/.xtt_start /home/b66
chmod
a+x /home/b66/.xtt_start
cp
/usr/pwrrt/cnf/op/.xsession /home/b66
chown
-R
b66 /home/b66
chgrp
-R
pwrp /home/b66
chmod
a+rwx /home/b66
fi
fi
chown
-R
pwrp /usr/pwrrt
chgrp
-R
pwrp /usr/pwrrt
...
...
@@ -156,6 +193,7 @@ if [ ! -e $proot ]; then
mkdir
$proot
/common/inc
mkdir
$proot
/common/load
mkdir
$proot
/common/log
mkdir
$proot
/common/loghist
mkdir
$proot
/common/db
mkdir
$proot
/common/web
mkdir
$proot
/x86_linux
...
...
@@ -166,6 +204,7 @@ if [ ! -e $proot ]; then
chown
-R
pwrp
$proot
chgrp
-R
pwrp
$proot
fi
if
[
!
-e
$aroot
/db
]
;
then
...
...
@@ -229,6 +268,20 @@ EOF
fi
fi
#
# Set owner on preinstalled I/O systems
#
if
[
-e
/lib/udev/devices/qbus
]
;
then
chown
pwrp:pwrp /lib/udev/devices/qbus
fi
if
[
-e
/lib/udev/devices/pbus1
]
;
then
chown
pwrp:pwrp /lib/udev/devices/pbus1
fi
if
[
-e
/lib/udev/devices/pbus2
]
;
then
chown
pwrp:pwrp /lib/udev/devices/pbus2
fi
changes
=
0
if
[
$new_user
-eq
1
]
;
then
changes
=
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment